Filtered MACD with Backtest [UAlgo]The "Filtered MACD with Backtest  " indicator is an advanced trading tool designed for the TradingView platform. It combines the Moving Average Convergence Divergence (MACD) with additional filters such as Moving Average (MA) and Average Directional Index (ADX) to enhance trading signals. This indicator aims to provide more reliable entry and exit points by filtering out noise and confirming trends. Additionally, it includes a comprehensive backtesting module to simulate trading strategies and assess their performance based on historical data. The visual backtest module allows traders to see potential trades directly on the chart, making it easier to evaluate the effectiveness of the strategy.
 🔶 Customizable Parameters : 
 Price Source Selection:  Users can choose their preferred price source for calculations, providing flexibility in analysis.
 Filter Parameters: 
 MA Filter:  Option to use a Moving Average filter with types such as EMA, SMA, WMA, RMA, and VWMA, and a customizable length.
 ADX Filter:  Option to use an ADX filter with adjustable length and threshold to determine trend strength.
 MACD Parameters:  Customizable fast length, slow length, and signal smoothing for the MACD indicator.
 Backtest Module: 
 Entry Type:  Supports "Buy and Sell", "Buy", and "Sell" strategies.
 Stop Loss Types:  Choose from ATR-based, fixed point, or X bar high/low stop loss methods.
 Reward to Risk Ratio:  Set the desired take profit level relative to the stop loss.
 Backtest Visuals:  Display entry, stop loss, and take profit levels directly on the chart with 
colored backgrounds.
 Alerts:  Configurable alerts for buy and sell signals.
 🔶 Filtered MACD : Understanding How Filters Work with ADX and MA 
 ADX Filter: 
The Average Directional Index (ADX) measures the strength of a trend. The script calculates ADX using the user-defined length and applies a threshold value.
Trading Signals with ADX Filter:
 Buy Signal:  A regular MACD buy signal (crossover of MACD line above the signal line) is only considered valid if the ADX is above the set threshold. This suggests a stronger uptrend to potentially capitalize on.
 Sell Signal:  Conversely, a regular MACD sell signal (crossunder of MACD line below the signal line) is only considered valid if the ADX is above the threshold, indicating a stronger downtrend for potential shorting opportunities.
 Benefits:  The ADX filter helps avoid whipsaws or false signals that might occur during choppy market conditions with weak trends.
  
  
 MA Filter: 
You can choose from various Moving Average (MA) types (EMA, SMA, WMA, RMA, VWMA) for the filter. The script calculates the chosen MA based on the user-defined length.
Trading Signals with MA Filter:
 Buy Signal:  A regular MACD buy signal is only considered valid if the closing price is above the MA value. This suggests a potential uptrend confirmed by the price action staying above the moving average.
 Sell Signal:  Conversely, a regular MACD sell signal is only considered valid if the closing price is below the MA value. This suggests a potential downtrend confirmed by the price action staying below the moving average.
 Benefits:  The MA filter helps identify potential trend continuation opportunities by ensuring the price aligns with the chosen moving average direction.
  
  
 Combining Filters: 
You can choose to use either the ADX filter, the MA filter, or both depending on your strategy preference. Using both filters adds an extra layer of confirmation for your signals.
 🔶 Backtesting Module 
The backtesting module in this script allows you to visually assess how the filtered MACD strategy would have performed on historical data. Here's a deeper dive into its features:
 Backtesting Type:  You can choose to backtest for buy signals only, sell signals only, or both. This allows you to analyze the strategy's effectiveness in different market conditions.
 Stop-Loss Types:  You can define how stop-loss orders are placed:
 ATR (Average True Range):  This uses a volatility measure (ATR) multiplied by a user-defined factor to set the stop-loss level.
 Fixed Point:  This allows you to specify a fixed dollar amount or percentage value as the stop-loss.
 X bar High/Low:  This sets the stop-loss at a certain number of bars (defined by the user) above/below the bar's high (for long positions) or low (for short positions).
 Reward-to-Risk Ratio:  Define the desired ratio between your potential profit and potential loss on each trade. The backtesting module will calculate take-profit levels based on this ratio and the stop-loss placement.
  
 🔶 Disclaimer: 
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (UAlgo) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future results.
Search in scripts for "stop loss"
IsAlgo - Reverse Candle Strategy► Overview: 
The Reverse Candle Strategy leverages a customizable moving average to identify the start of a trend. It utilizes the highest and lowest prices to define the trend and its corrections, executing trades based on custom candlestick patterns to capitalize on the main trend's continuation.
 ► Description: 
The Reverse Candle Strategy is designed to effectively identify and trade market trends by combining moving averages and custom candlestick patterns. The core of the strategy is a single, customizable moving average, which helps determine the trend direction. When the market price crosses above the moving average, this signifies the beginning of an uptrend. The strategy then tracks the highest price reached during the uptrend and waits for a correction. A specific custom candlestick pattern signals the end of the correction, at which point the strategy executes a long trade.
In the case of a downtrend, the market price crossing below the moving average marks the trend’s start. The strategy monitors the lowest price during the downtrend and awaits a correction. The end of this correction is identified by another custom candlestick pattern, prompting the strategy to execute a short trade. This combination of a moving average with precise candlestick patterns ensures that trades are made at optimal moments, improving the likelihood of successful trades.
The integration of the moving average and candlestick patterns is critical. The moving average smooths out price data to highlight the trend direction, while the custom candlestick patterns provide specific entry signals after a correction, ensuring the trend’s resumption is genuine. This synergy enhances the strategy’s ability to filter out false signals and improve trade accuracy.
↑ Long Entry Example:
When the price is moving above the moving average and the highest price has been detected, the strategy will wait for the entry candle to execute the long trade.
  
↓ Short Entry Example:
When the price is moving below the moving average and the lowest price has been detected, the strategy will wait for the entry candle to execute the short trade.
  
✕ Exit Conditions:
To manage risk effectively, the strategy provides multiple stop-loss options. Traders can set stop-loss levels using fixed pips, ATR-based calculations, or the higher/lower price of past candles. Additionally, trades can be closed if a candle moves against the trade direction. Up to three take-profit levels can be set using fixed pips, ATR, or risk-to-reward ratios, allowing traders to secure profits at different stages. The trailing stop feature adjusts the stop loss as the trade moves into profit, locking in gains while allowing for continued potential upside. Furthermore, a break-even feature moves the stop loss to the entry price once a certain profit level is reached, protecting against losses. Trades can also be closed when the price crosses the moving average.
 ► Features & Settings: 
 ⚙︎ Moving Average:   Users can choose between various types of moving averages (e.g., SMA, EMA) to confirm the trend direction.
 ⚙︎ Trend & Corrections:   Set minimum and maximum pips for trends and corrections, with an option to define correction percentages relative to the trend.
 ⚙︎ Entry Candle:  Define the entry candle by specifying the minimum and maximum size of the candle's body and the ratio of the body to the entire candle size, ensuring significant breakouts trigger trades.
 ⚙︎ Trading Session:  This feature allows users to define specific trading hours during which the strategy should operate, ensuring trades are executed only during preferred market periods.
 ⚙︎ Trading Days:  Users can specify which days the strategy should be active, offering the flexibility to avoid trading on specific days of the week.
 ⚙︎ Backtesting:  Enables a backtesting period during which the strategy can be tested over a selected start and end date. This feature can be deactivated if not needed.
 ⚙︎ Trades:  Configure trade direction (long, short, or both), position sizing (fixed or percentage-based), maximum number of open trades, and daily trade limits.
 ⚙︎ Trades Exit:  Various exit methods, such as setting profit or loss limits, trade duration, or closing trades on moving average crossings.
 ⚙︎ Stop Loss:  Various stop-loss methods are available, including a fixed number of pips, ATR-based, or using the highest or lowest price points within a specified number of previous candles. Additionally, trades can be closed after a specific number of candles move in the opposite direction of the trade.
 ⚙︎ Break Even:  This feature adjusts the stop loss to a break-even point once certain conditions are met, such as reaching predefined profit levels, to protect gains.
 ⚙︎ Trailing Stop:  The trailing stop feature adjusts the stop loss as the trade moves into profit, securing gains while potentially capturing further upside.
 ⚙︎ Take Profit:  up to three take-profit levels using fixed pips, ATR, or risk-to-reward ratios based on the stop loss. Alternatively, specify a set number of candles moving in the trade direction.
 ⚙︎ Alerts:  The strategy includes a comprehensive alert system that informs the user of all significant actions, such as trade openings and closings. It supports placeholders for dynamic values like take-profit levels and stop-loss prices.
 ⚙︎ Dashboard:  Visual display providing detailed information about ongoing and past trades on the chart, helping users monitor performance and make informed decisions.
 ► Backtesting Details: 
Timeframe: 30-minute NAS100 chart
Initial Balance: $10,000
Order Size: 5 Units
Commission: $0.5 per contract
Slippage: 5 ticks
Stop Loss: MA Crossing or by break even
IsAlgo - Ultra Trend Strategy► Overview: 
The Ultra Trend strategy is designed to identify trend lines based on average price movement and execute trades when the price crosses the middle line, confirmed by an entry candle. This strategy combines ATR, Moving Averages, and customizable candlestick patterns to provide a versatile and robust trading approach.
 ► Description: 
The Ultra Trend strategy employs a multi-faceted approach to accurately gauge market trends and execute trades. It combines the Average True Range (ATR) with trendline analysis and Moving Averages, providing a comprehensive view of market conditions. The strategy uses ATR to measure market volatility and the average price movement, helping to set dynamic thresholds for trend detection and adapting to changing market conditions. The slope of the trend is calculated based on the angle of price movement, which aids in identifying the strength and direction of the trend. 
Additionally, a Moving Average is used to filter trades, ensuring alignment with the broader market direction and reducing false signals, thereby enhancing trade accuracy.
Traders can configure the strategy to enter trades in the direction of the trend, against the trend, or both. This feature enhances the adaptability of the Ultra Trend strategy, making it suitable for various trading styles and market environments.
↑ Long Entry:
A long trade is executed when the entry candle crosses and closes above the trend line. This indicates a bullish market condition, signaling an opportunity to enter a buy position.
  
↓ Short Entry:
A short trade is executed when the entry candle crosses and closes below the trend line. This indicates a bearish market condition, signaling an opportunity to enter a sell position.
  
✕ Exit Conditions:
The strategy offers multiple stop-loss options to manage risk effectively. Traders can set stop-loss levels using fixed pips, ATR-based calculations, the higher/lower price of past candles, or close a trade if a candle moves against the trade direction.
Up to three take profit levels can be set using methods such as fixed pips, ATR, and risk-to-reward ratios. This allows traders to secure profits at various stages of the trade.
A trailing stop feature adjusts the stop loss as the trade moves into profit, locking in gains while allowing the trade to continue capturing potential upside. Additionally, a break-even feature moves the stop loss to the entry price once a certain profit level is reached, protecting against losses.
Trades can also be closed when a trend change is detected or when a candle closes outside a predefined channel, ensuring that positions are exited promptly in response to changing market conditions.
 ► Features and Settings: 
 ⚙︎ Trend:  Users can configure the trend direction, length, factor, and slope, allowing for precise control over how trends are identified and followed.
 ⚙︎ Moving Average:  An Exponential Moving Average (EMA) can be employed to confirm the trend direction indicated by the trend lines. This provides further assurance that the trend line breakout is not a false signal. The EMA can be enabled or disabled based on user preference.
 ⚙︎ Entry Candle:  The entry candle is the candle that breaks the trend line, signaling an entry opportunity. Users can specify the minimum and maximum size of the candle's body and the ratio of the body to the entire candle size. This ensures that only significant breakouts trigger trades.
 ⚙︎ Trading Session:  This feature allows users to define specific trading hours during which the strategy should operate, ensuring trades are executed only during preferred market periods.
 ⚙︎ Trading Days:  Users can specify which days the strategy should be active, offering the flexibility to avoid trading on specific days of the week.
 ⚙︎ Backtesting:  Enables a backtesting period during which the strategy can be tested over a selected start and end date. This feature can be deactivated if not needed.
 ⚙︎ Trades:  This includes configuring the direction of trades (long, short, or both), position sizing (fixed or percentage-based), the maximum number of open trades, and limitations on the number of trades per day or based on trend.
 ⚙︎ Trades Exit:  The strategy offers various exit methods, such as setting profit or loss limits, specifying the duration a trade should remain open, or closing trades based on trend reversal.
 ⚙︎ Stop Loss:  Various stop-loss methods are available, including a fixed number of pips, ATR-based, or using the highest or lowest price points within a specified number of previous candles. Additionally, trades can be closed after a specific number of candles move in the opposite direction of the trade.
 ⚙︎ Break Even:  This feature adjusts the stop loss to a break-even point once certain conditions are met, such as reaching predefined profit levels, to protect gains.
 ⚙︎ Trailing Stop:  The trailing stop feature adjusts the stop loss as the trade moves into profit, securing gains while potentially capturing further upside.
 ⚙︎ Take Profit:  Up to three take-profit levels can be set using various methods, such as a fixed amount of pips, ATR, or risk-to-reward ratios based on the stop loss. Alternatively, users can specify a set number of candles moving in the direction of the trade.
 ⚙︎ Alerts:  The strategy includes a comprehensive alert system that informs the user of all significant actions, such as trade openings and closings. It supports placeholders for dynamic values like take-profit levels and stop-loss prices.
 ⚙︎ Dashboard:  A visual display provides detailed information about ongoing and past trades on the chart, helping users monitor the strategy's performance and make informed decisions.
► Backtesting Details:
Timeframe: 5-minute US30 chart
Initial Balance: $10,000
Order Size: 4% of equity per trade
Commission: $0.05 per contract
Slippage: 5 ticks
Stop Loss: ATR-based
IsAlgo - AI Trend Strategy►  Overview: 
The AI Trend Strategy employs a combination of technical indicators to guide trading decisions across various markets and timeframes. It uses a custom Super Trend indicator and an Exponential Moving Average (EMA) to analyze market trends and executes trades based on specific candlestick patterns. This strategy includes options for setting stop losses, take profit levels, and features an alert system for trade notifications.
►  Description: 
This strategy focuses on identifying the optimal "entry candle," which signals either a potential correction within the ongoing trend or the emergence of a new trend. The entry criteria for this candle are highly customizable, allowing traders to specify dimensions such as the candle's minimum and maximum size and body ratio. Additional settings include whether this candle should be the highest or lowest compared to recent candles and if a confirmation candle is necessary to validate the entry.
The Super Trend indicator is central to the strategy’s operation, dictating the direction of trades by identifying bullish or bearish trends. Traders have the option to configure trades to align with the direction of the trend identified by this indicator, or alternatively, to take positions counter to the trend for potential reversal strategies. This flexibility can be crucial during varying market conditions.
Additionally, the strategy incorporates an EMA alongside the Super Trend indicator to further analyze trend directions. This combined approach aims to reduce the occurrence of false signals and improve the strategy's overall trend analysis.
The learning algorithm is a standout feature of the AI Trend Strategy. After accumulating data from a predefined number of trades (e.g., after the first 100 trades), the algorithm begins to analyze past performances to identify patterns in wins and losses. It considers variables such as the distance from the current price to the trend line, the range between the highest and lowest prices during the trend, and the duration of the trend. This data informs the algorithm's predictions for future trades, aiming to improve accuracy and reduce losses by adapting to the evolving market conditions.
►  Examples of Trade Execution: 
1. In an Uptrend: The strategy might detect a suitable entry candle during a correction phase, which aligns with the continuing uptrend for a potential long trade.
  
2. In a Downtrend: Alternatively, the strategy might identify an entry candle at the end of a downtrend, suggesting a potential reversal or correction where a long trade could be initiated.
  
3. In an Uptrend: The strategy may also spot an entry candle at the end of an uptrend and execute a short trade, anticipating a reversal or significant pullback.
  
4. In a Downtrend: The strategy might find a suitable entry candle during a correction phase, indicating a continuation of the downtrend for a potential short trade.
  
These examples illustrate how the strategy identifies potential trading opportunities based on trend behavior and candlestick patterns.
►  Features and Settings: 
 ⚙︎ Trend:  Utilizes a custom Super Trend indicator to identify the direction of the market trend. Users can configure the strategy to execute trades in alignment with this trend, take positions contrary to the trend, or completely ignore the trend information for their trading decisions.
 ⚙︎ Moving average:  Employs an Exponential Moving Average (EMA) to further confirm the trend direction indicated by the Super Trend indicator. This setting can be used in conjunction with the Super Trend or disabled if preferred.
 ⚙︎ Entry candle:  Defines the criteria for the candle that triggers a trade. Users can customize aspects such as the candle's size, body, and its relative position to previous candles to ensure it meets specific trading requirements before initiating a trade.
 ⚙︎ Learning algorithm:  This component uses historical trade data to refine the strategy. It assesses various aspects of past trades, such as price trends and market conditions, to make more informed trading decisions in the future.
 ⚙︎ Trading session:  Users can define specific trading hours during which the strategy should operate, allowing trades to be executed only during preferred market periods.
 ⚙︎ Trading days:  This option enables users to specify which days the strategy should be active, providing the flexibility to avoid trading on certain days of the week if desired.
 ⚙︎ Backtesting:  Enables a period during which the strategy can be tested over a selected start and end date, with an option to deactivate this feature if not needed.
 ⚙︎ Trades:  Detailed configuration options include the direction of trades (long, short, or both), position sizing (fixed or percentage-based), the maximum number of open trades, and limitations on the number of trades per day or based on trend changes.
 ⚙︎ Trades Exit:  Offers various strategies for exiting trades, such as setting limits on profits or losses, specifying the duration a trade should remain open, or closing trades based on trend reversal signals.
 ⚙︎ Stop loss:  Various methods for setting stop losses are available, including fixed pips, based on Average True Range (ATR), or utilizing the highest or lowest price points within a designated number of previous candles. Another option allows for closing the trade after a specific number of candles moving in the opposite direction.
 ⚙︎ Break even:  This feature adjusts the stop loss to a break-even point under certain conditions, such as reaching predefined profit levels, to protect gains.
 ⚙︎ Trailing stop:  The trailing stop feature adjusts the stop loss as the trade moves into profit, aiming to secure gains while potentially capturing further upside.
 ⚙︎ Take profit:  Up to three take profit levels can be established using various methods, such as a fixed amount of pips, risk-to-reward ratios based on the stop loss, ATR, or after a set number of candles that move in the direction of the trade.
 ⚙︎ Alerts:  Includes a comprehensive alert system that informs the user of all significant actions taken by the strategy, such as trade openings and closings. It supports placeholders for dynamic values like take profit levels, stop loss prices, and more.
 ⚙︎ Dashboard:  Provides a visual display of detailed information about ongoing and past trades on the chart, helping users monitor the strategy’s performance and make informed decisions.
►  Backtesting Details: 
Timeframe: 15-minute BTCUSD chart.
Initial Balance: $10,000.
Order Size: 4% of equity per trade.
Commission: 0.01%.
Slippage: 5 ticks.
Risk Management: Strategic stop loss settings are applied based on the most extreme price points within the last 18 candles.
Price Action Pattern Breakout Strategy: Wedge,Triangle,ChannelIntroducing the Price Action Pattern Breakout Strategy: Wedge,Triangle,Channel  💹🚀
The "Price Action Pattern Breakout Strategy: Wedge, Triangle, Channel" is a dynamic and automated trading strategy that excels in recognizing and capitalizing on breakout opportunities within the realm of powerful price action patterns. It is finely tuned to achieve exceptional precision in detecting three distinct pattern types: Wedge, Triangle, and Channel. This diversity equips you to confidently navigate a wide range of market scenarios and opportunities.
This strategy automates trade entries and exits upon confirmed pattern breakouts, this eliminates human errors in correctly recognizing patterns and prevents emotional decisions. This strategy is designed to work across different time frames, making it suitable for both short-term and long-term traders. Whether you're a day trader, swing trader, or investor, this strategy provides the flexibility you need to thrive in diverse market conditions.
💎  How it Works: 
▶️ In this strategy, three price action patterns have been utilized, one of which is the "Wedge" pattern. The Wedge pattern has consistently demonstrated a high level of credibility, typically resulting in sharp and rapid price movements following a confirmed breakout from this pattern. This characteristic makes the Wedge pattern highly noteworthy in our strategy. The second pattern is the "Triangle" pattern, which, depending on its formation, whether ascending or descending, can indicate a strong continuation or reversal of the trend. The last pattern is the "Channel" pattern. The reason for using the Channel pattern is its versatility in various market conditions and its tendency to produce reliable results.
In the snapshot below, you can observe the types of patterns that this strategy is capable of identifying at a glance:
  
▶️ This strategy employs two types of targeting systems: Fixed Targets and Trailing Targets.
Fixed Targets is the default targeting system of the strategy, incorporating two primary targets: TP1 (Target Point 1) and TP2 (Target Point 2). These targets are thoughtfully adjusted in alignment with specific rules for each pattern. With Fixed Targets, you have the flexibility to designate the position size percentage for your exits at TP1 and TP2. For instance, should you opt to allocate 60% of your position size to TP1, as soon as the price triggers the first take profit level, 60% of your initial position is gracefully closed, leaving the remaining 40% to exit the trade upon reaching TP2.
  
Trailing Targets represent the strategy's alternative targeting system. With this system, the trailing stop becomes active once the price reaches the specified trigger point. The strategy then exits the trade based on the defined offset percentage and price retracement from the trailing limit.
  
▶️ This strategy relies on a single type of stop loss, determined by previous pivot points and adjusted based on the trade's direction, whether long or short, placing the stop loss above or below the prior pivot. This stop loss approach has demonstrated reliability when used alongside price action patterns.
In addition to this fixed stop loss, you can specify a percentage buffer, offering protection against potential stop hunting due to market fluctuations. This buffer helps protect your positions from sudden price swings. For example, selecting a 1% buffer means your stop loss will be positioned 1% higher or lower concerning the last pivot, depending on your trade's direction. This added layer of security ensures your trades remain resilient and less vulnerable to market volatility.
▶️ A practical feature of this strategy is the "Risk-Free" option. Once activated, it continuously monitors price movements, and as soon as the price progresses in the trade's direction and surpasses the designated Risk-Free Trigger Point in percentage, the stop loss is dynamically shifted from its initial position to the entry price, effectively making the trade "risk-free." This means that if the trade doesn't go as expected, we exit at the entry point, incurring neither profit nor loss from the trade.
Additionally, you have the flexibility to fine-tune the modified stop loss, positioning it slightly above or below the entry price through the configuration of a specified percentage. This allows for effective consideration of commission fees in your trading strategy.
  
▶️ Risk management is a crucial concept in trading, playing a significant role in a trader's long-term success. This strategy introduces a unique feature called "Fixed Loss Position Sizing", where upon activation, you can limit the risk exposure to a specified percentage of your capital per trade. Set your preferred risk percentage along with the intended leverage. The strategy independently considers your available capital and designated leverage, determining the position size before executing any trade.
In the case of a stop loss, your loss is limited to the specified risk percentage. For instance, with a $1000 account and a 1% risk set, the strategy adjusts each trade's size to ensure a maximum loss of $10 if the stop loss is triggered. Enabling this feature will ensure disciplined risk management, aligning potential losses precisely with your predetermined risk percentage, contingent upon your total available capital.
▶️ Another feature of this strategy is a sophisticated mechanism called "Loss Compensation".  When enabled, Loss Compensation dynamically adjusts the position size after a loss, aiming to recover from previous losses in subsequent trades. This adaptive mechanism continually modifies the position size to mitigate the impact of consecutive losses until reaching a user-defined limit for consecutive loss compensations.
The feature's configurability allows users to set the maximum number of consecutive losses to compensate for and also includes an option to factor in trading fees from prior trades into the compensation calculation.  Loss Compensation operates in conjunction with the 'Fixed Loss Position Sizing' setting, ensuring that once losses are sufficiently compensated, subsequent entries revert to the predefined configurations within the 'Fixed Loss Position Sizing' settings.
This advanced tool ensures a stable risk management approach by changing trade sizes dynamically according to past results during consecutive loss periods.
▶️ This strategy incorporates a feature known as the "Counter-Pattern Breakout", altering its approach to wedge, triangle, and channel pattern breakouts. Normally, the strategy relies on standard pattern signals to determine whether to enter long or short positions based on breakout directions. 
For example, in an ascending channel or a rising wedge pattern, the strategy typically seeks a short position opportunity upon a confirmed breakout in the lower line, and breakouts from the upper line are disregarded by the strategy. But with this feature enabled, strategy disregards the conventional pattern signals, seizing breakouts from upper or lower lines to open corresponding positions. For instance, in the ascending channel or the rising wedge pattern example, the strategy might enter a long position if the upper line breaks or a short position if the lower line breaks.
This introduces a more adaptive and opportunistic trading style, allowing you to capitalize on price movements, irrespective of the typical signal direction indicated by the pattern.
  
▶️ This strategy is fully compatible with third-party trading bots, allowing for easy connectivity to popular trading platforms. By leveraging the TradingView webhook functionality, you can effortlessly link the strategy to your preferred bot and receive accurate signals for position entry and exit. The strategy provides all the necessary alert message fields, ensuring a smooth and user-friendly trading experience. With this integration, you can automate the execution of trades, saving time and effort while enjoying the benefits of this powerful strategy.
⚙️  How to Use & Configure User Settings: 
To fully utilize the "Price Action Pattern Breakout Strategy: Wedge, Triangle, Channel," it's essential to consider and comprehend the following steps. They play a crucial role in enhancing its functionality and achieving its utmost potential outcomes:
1. General Strategy Settings:
 
 
Enable Dark Mode if using a dark TradingView theme for improved chart visibility.
 
 
Select the Strategy's Trade Direction: Long, Short, or Both.
 
 
Choose Pattern Recognition Accuracy: High for precise recognition but fewer positions, Low for more positions with slightly less accuracy.
 
 
Enable 'Prevent New Entry on Opposite Signal While In Position' to avoid new trades if the opposite signal occurs.
 
 
Switch to Indicator Mode if solely using the strategy as an indicator or in combination with other strategies.
 
 
2. Pattern and Pivot Configuration:
 
 
Consider configuring the Number of Patterns and Pivot Lookback Lengths. Here, you can personalize the pivot lookback lengths for wedge, triangle, and channel patterns across eight different settings on your chart. For lower time frames, consider larger lengths to reduce chart noise. Alternatively, to maintain clarity on your chart, you can disable multiple patterns with different lengths while ensuring at least one pattern remains enabled.
Note that enabling more patterns doesn't always equate to increased potential profit. Sometimes, fewer patterns result in greater profit potential, and vice versa. Experiment with lengths and the number of patterns to determine the most profitable and optimal outcome for your trading symbol and timeframe.
 
 
3. Targeting System Selection:
 
 
Choose between 'Fixed Targets' or 'Trailing Targets' for your targeting system.
 
 
'Fixed Targets' is the default setting, operational when 'Trailing Targets' are turned off.
 
 
Set the TP1 Position Size as a percentage, defining the size for TP1, and the rest exits at TP2.
 
 
Optionally activate 'Skip Entry if TP1 is Passed' to bypass entering positions if the price has exceeded TP1.
 
 
Alternatively, opt for the 'Trailing Target' for dynamic exits based on trigger points and offsets. Note that this option disables fixed targets.
 
 
4. Stop Loss Configuration:
 
 
Determine the number of candles to consider for stop loss placement based on the last pivot.
 
 
Optionally add a percentage to the stop loss to create a buffer against market fluctuations, guarding your positions from sudden price swings.
 
 
5. Risk Management Configuration:
 
 
You can activate the 'Risk-Free' feature, making your trades risk-free by moving the stop loss to the entry price upon reaching a specified trigger point.
 
 
You have the possibility to enable 'Fixed Loss Position Sizing' to limit risk to a percentage of total capital per trade, ensuring prudent risk management.
 
 
You can employ 'Use Real-Time Balance for Each Entry' to precisely calculate fixed loss position sizing according to the real-time balance for every entry.
 
 
The 'Loss Compensation' feature can be activated to automatically adjust trade sizes during consecutive losses and compensate for prior incurred losses.
 
 
Loss compensation continues adjusting trade sizes until it reaches the defined limit of consecutive losses specified in the 'Maximum Consecutive Losses To Compensate' field.
 
 
You can factor in commission fees by specifying a percentage in the 'Include Trading Fees in Compensation (%)' field, providing an option for more accurate loss compensation calculations.
 
 
You have the option to enable 'Limit Compensation to Real-Time Balance' to prevent consecutive loss compensation from exceeding your current real-time account balance. 
 
 
It's important to note that for the 'Loss Compensation' feature to operate, the 'Fixed Loss Position Sizing' must be enabled.
 
 
6. Counter-Pattern Breakout Configuration:
 
 
In this section you have the option to enable the "Counter-Pattern Breakout" feature to adjust the strategy's approach to wedge, triangle, and channel pattern breakouts. Once enabled, the strategy disregards traditional pattern signals and capitalizes on breakouts from either the upper or lower lines, initiating corresponding positions accordingly.
 
 
Choose between 'Fixed Target' or 'Trailing Target' for your targeting system. If you opt for the 'Fixed Target', set a specific target point as a percentage, serving as the default target for counter-pattern breakouts. Alternatively, choose the 'Trailing Target' for dynamic exits based on trigger points and offsets. Do keep in mind that selecting the 'Trailing Target' option disables the fixed target setting.
 
 
Keep in mind that for standard, non-counter-pattern breakouts, the target point settings in their respective sections remain applicable, distinct from the settings configured for targeting within this section.
 
 
Note that the stop loss configurations are shared across standard pattern and counter-pattern breakouts and can be adjusted within the stop loss section.
 
 
7. Info Tables:
 
 
In the info tables section, you can show or hide different tables on the charts. This includes the backtest table, the current balance table displaying available funds, and a table showcasing Maximum Consecutive Wins or Losses. Choose which to display according to your preferences and specific needs.
 
 
8.Date & Time Range Filter:
 
 
Utilize the Date & Time Range filter feature to precisely select a start and end date, including time, to filter data within the chosen range.
 
 
When connecting this strategy to a trading bot for automated trades, ensure to set the start date and time to the intended initiation moment to avoid undesired outcomes as this directly affects the real-time balance calculations of the strategy.
 
 
8. Integration with Third-Party Bots:
 
 
To automate trading, leverage the strategy's compatibility with third-party trading bots. Seamlessly integrate the strategy into well-known trading platforms by using alert message fields to input commands from third-party trading bots, enabling automated trade execution for both long and short positions.
 
 
By furnishing these adjustable settings, the strategy empowers you to personalize it according to your unique requirements, thereby bolstering the adaptability and efficacy of your trading approach.
🔐  Source Code Protection: 
The 'Price Action Pattern Breakout Strategy: Wedge, Triangle, Channel' source code is engineered for precision, reliability, and effectiveness. Its original and innovative design warrants protection and restricted access, preserving the strategy's exclusivity. Safeguarding the code maintains the strategy's integrity and distinctiveness, providing users with a competitive advantage in their trading endeavors.
Strategy Developer ToolSolar Strategies: Strategy Developer Tool Complete Guide   
This guide provides full explanation of the intended purpose of our script along with individual explanation of each input and the logic behind them coupled with general knowledge which we find useful in using our tool regarding elements of risk and strategy. Use this information wisely and understand we are not providing financial advise, this is a learning tool meant to help advance traders knowledge of the markets and their strategies which are formed as such. 
 Basics  
Before getting into the specifics of how to use our strategy developer tool, it's important to understand a few basic fundamental things about it. The purpose of the tool is to allow the user to optimize a strategy through back testing with our strategy tracker and 50+ user inputs. The way you optimize your strategy depends on a couple things:  
The state of the current and recent previous market. 
The timeframe you trade on. 
The types of trades you prefer. (swings, scalps, etc.) 
How much risk you are willing to take on.  
 Risk Basics:   
Going off the last bullet point on the list above, risk plays a huge part in how you optimize your strategy, with that being said here are a few general rules of risk as they relate to trades: 
The more trades you take on, the more risk you are opening your strategy up to. 
If done correctly, more trades will often result in more profit with slightly lower accuracy, and more risk. 
The less trades you take on, the easier it is to have higher accuracy because ideally by rooting out the losing trades, you are left with fewer overall trades but mostly winning trades. 
Less trades with higher accuracy often result in less profit but will 100% be less risky than the opposite. (More trades, less accurate, more profit, MORE RISK) 
 Input Basics:   
More trades, less trades, more risk, less risk, what does this all mean as it relates to our tool? 
The 50+ user inputs that allow you to optimize and create your strategy all effect when the script takes a trade.  
Many of the inputs are essentially conditions. By changing these inputs, what you are doing is changing how specific the conditions need to be in order to take a trade. 
This is how the inputs tie into the bullet point list above regarding risk and the number of trades you take on. By raising or lowering certain inputs, you are making the conditions more or less specific on when to trade.  
Making conditions more specific will allow for less trades to be taken and will often result in a higher win rate, and less associated risk. 
Making conditions less specific will allow for more trades to be taken and depending on the state of the market, could result in more profit being realized, but at the same time opens you up to more risk because you are stating a more general set of conditions in order to take a trade.  
 How does it work?  
Our strategy developer tool is based on two simple factors in order to identify specific areas in the market deemed good for trade. They are as follows: 
Directional momentum to identify when a move might happen. 
A confirmation of the desired move.  
 Indicators:   
The tool gets its information on these two factors from two custom built indicators which are hard coded into the script. These two indicators and the inputs which affect them can be found labeled with Indicator 1 or Indicator 2 in the tool's settings.  
When the conditions are met based on the factors of both indicators, it then decides your stop losses and take profits using pivot points.  
Indicator 1 is the momentum indicator. 
Indicator 2 looks for confirmation of the move. 
 Hedges:   
Since nothing is ever certain when trading, our tool also aims to minimize potential loss before it can happen by incorporating hedges when a signal prints in the opposite direction of the trade you are currently in.  
To identify when to hedge, the candles will appear with the opposite color of your original trade. Candles, while in a long trade, appear as green and candles while in a short trade appear as red. While in a long trade the only time red candles will appear is when a hedge occurs and vice versa for shorts. 
Example: If you just took a long trade based on a long signal that the script gave off, but a short signal prints off while you are in the long, you are directed to sell half your long position and enter that half into a short position. Since there is now more uncertainty in the long because of the short signal, minimizing your position size and having a smaller position in the opposite direction allows you to cover your bases if the trade moves against you. If it doesn’t move against you and ends up going long as originally intended, you are not to lose any money, likely a small profit or break even when all is said and done.  
In order to give the hedges a greater change of hitting, the take profits are smaller than a normal trade, this way even if your hedge wasn’t necessary and the original trade does not move against you, it's likely that your hedge will still win, and you can just consider it a small scalp to further your profits on the original trade. 
 Doubles:  
Besides minimizing loss, we also aim to maximize the potential gain. When a second signal prints off in the direction of the trade you are currently already in, the tool directs you to double your position size.  
The signal for doubling is a label with “2x” written inside. 
The logic here is similar to hedging but in the opposite way. Just as a signal in the opposite direction creates uncertainty, a signal in the same direction indicates more certainty hence doubling your position size.  
Example: If you are currently in a long position and you get a second long signal, you would then double your existing position since two long signals printing off before the first one has a chance to play out indicates a stronger chance of movement in the intended direction of your trade. 
 
 User Inputs   
Upon opening the tools settings tab, you will find all the user inputs which can then be modified to fit your desired strategy. In this section of our guides, you will find individual explanations and use cases for each input so you can correctly use them to your best advantage.  
Strategy Tracker Table:  
By ticking this input on, the strategy tracker table will be visible to the user. (Default is on) 
 
 Indicator 1 Greater Than: Long:   
By ticking this input on, you are adding a condition the script will then look for in order to take a long. (Default is on)  
This condition is that an average of indicator 1, which searches for momentum, must fall above a certain level, which is determined in the next input.  
The purpose of this is to ensure that the average momentum is not too low because this would indicate prolonged downwards movement on the timeframe of the market being observed, making a long position riskier.  
 
 Indicator 1 Greater Than Input: Long:   
This input correlates to the previous input directly above.  
If Indicator 1 Greater Than: Long is ticked on, then one of the conditions in order to take a long position will be that the average of indicator 1 must fall above the level which you set in this input.  
max level 100, min level 0  
 
 Indicator 1 Less Than: Long   
By ticking this input on, you are adding a condition the script will then look for in order to take a long position. (Default is on)  
This condition is that an average of indicator 1, which searches for momentum, must fall below a certain level, which is determined in the next input.  
The purpose of this is to ensure that the average momentum is not too high, because this would indicate a prior significant upwards movement or trend on the timeframe of the market being observed.  
Taking a long position while the average momentum is at higher levels exposes the risk of longing as the market has started to pull back from a peak or when the market has just reached a peak.  
 
 Indicator 1 Less Than Input: Long   
This input correlates to the previous input directly above.  
If Indicator 1 Less Than: Long is ticked on, then one of the conditions in order to take a long position will be that the average of indicator 1 must fall below the level which you set in this input.  
max level 100, min level 0 
 
 Indicator 1 Greater Than: Short   
By ticking this input on, you are adding a condition the script will then look for in order to take a short. (Default is on)  
This condition is that an average of indicator 1, which searches for momentum, must fall above a certain level, which is determined in the next input.  
The purpose of this is to ensure that the average momentum is not too low because this would indicate prolonged downwards movement or trend on the timeframe of the market being observed.  
Taking a short position while the average momentum is at lower levels exposes the risk of shorting as the market has started to recover from a bottom or when the market has just reached a bottom.  
 
 Indicator 1 Greater Than Input: Short  
This input correlates to the previous input directly above.  
If Indicator 1 Greater Than: Short is ticked on, then one of the conditions in order to take a short position will be that the average of indicator 1 must fall above the level which you set in this input.  
max level 100, min level 0 
 
 Indicator 1 Less Than: Short  
By ticking this input on, you are adding a condition the script will then look for in order to take a short position. (Default is on)  
This condition is that an average of indicator 1, which searches for momentum, must fall below a certain level, which is determined in the next input.  
The purpose of this is to ensure that the average momentum is not too high, because this would indicate a prior significant upwards movement or trend on the timeframe of the market being observed.  
Taking a short position while the average momentum is at higher levels exposes the risk of shorting as the market is currently in a strong uptrend.  
 
 Indicator 1 Less Than: Short   
This input correlates to the previous input directly above.  
If Indicator 1 Less Than: Short is ticked on, then one of the conditions in order to take a short position will be that the average of indicator 1 must fall below the level which you set in this input.  
max level 100, min level 0 
 
 Summary of Input Group: Indicator 1 Greater/Less Than Long/Short  
This grouping of inputs is best used as a filter of sorts, much like many of the other inputs which are also essentially filters of the market to find areas ripe for trade. Specifically, however, this group of inputs is especially powerful because if used correctly, it can specify a range for the average momentum to fall in when looking for either long or short trades. Think of it like a sweet spot where the average is not too high nor too low. In combination with the numerous other inputs which will shortly be explained, this sweet spot can be a great indication. Keep in mind that once you find a working range, this will not last forever. Conditions in the market are ever changing and as such your inputs, in this case the range the average momentum must fall in, will also need to change with the market conditions.  
 
 Bars Since Crossover:   
This input simply describes a crossover of the momentum indicator (indicator 1) and its average. 
In the category How does it work? Two main factors are discussed, the first being directional momentum to determine when an upwards move might happen. The crossover correlated to this input is the directional momentum as mentioned earlier. 
As also mentioned in How does it work? The second factor is a confirmation of the desired upwards move. This confirmation is a crossover of the current price and indicator 2 which will be further addressed later on.  
What's important to understand about the two key factors at play in regard to Bars Since Crossover is that this input is determining a condition which looks for a certain number of bars prior to the confirmation of indicator 2 which the crossover of momentum and its average has happened on indicator 1.  
Example: Bars Since Crossover input is set to 10. This means that the crossover of momentum and its average from indicator 1 must be within 10 bars prior to the confirmation from indicator 2.  If this happens then this condition is met for a long position.  
 
  Bars Since Crossunder:   
This input simply describes a crossunder of the momentum indicator (indicator 1) and its average. 
In the category How does it work? Two main factors are discussed, the first being directional momentum to determine when a downwards move might happen. The crossunder correlated to this input is the directional momentum as mentioned earlier. 
As also mentioned in How does it work? The second factor is a confirmation of the desired downwards move. This confirmation is a crossunder of the current price and indicator 2 which will be further addressed later on.  
What's important to understand about the two key factors at play in regard to Bars Since Crossunder is that this input is determining a condition which looks for a certain number of bars prior to the confirmation of indicator 2 which the crossunder of momentum and its average has happened on indicator 1.  
Example: Bars Since Crossunder input is set to 10. This means that the crossunder of momentum and its average from indicator 1 must be within 10 bars prior to the confirmation from indicator 2.  If this happens then this condition is met for a short position.  
 
 Summary of Input Group: Bars Since Crossover/Crossunder  
These two inputs can have a large effect on the types of trades being taken and the risk which your strategy opens up to. The idea is that in order for the two key factors described in How does it work? to be correlated and therefore indicate a strong directional move, the two events must happen within a somewhat small period of time. If the period of time between the two events taking place is too large, then it's riskier for your strategy due to a delay in directional momentum and the necessary confirmation. It's important to note that this “small period of time” is relative to the security you're trading and the timeframe its being trades on. Small could mean 5 bars in some cases or 20 bars in others, this is why our custom back tester exists. So that the process of optimization on different securities and different timeframes is smooth and only requires adjustments to inputs then your own analysis of the back test results.  
 
 Indicator 1 Input Long   
Defines how strong the upwards momentum needs to be in order to take a long position. 
When optimizing your strategy, this input is likely to have some of the most effect on when the script takes a long position.  
The reasoning for this is because the level you set for this input is the level which indicator 1 must close above following the crossover of its average.  
Example: Indicator 1 Input Long set to 50, this means that when the momentum crosses over its average from indicator 1, upon the close of this crossover the momentum must be above the level 50 in order for this condition to be met to take a long position. 
The higher the level, the stronger the upwards momentum must be, and therefore by using higher levels for this input, the script will search for stronger directional moves leaving less chance for the trade to move against you. 
 
 Indicator 1 Input Short  
Defines how strong the downwards momentum needs to be in order to take a short position. 
When optimizing your strategy, this input is likely to have some of the most effect on when the script takes a short position.  
The reasoning for this is because the level you set for this input is the level which indicator 1 must close below following the crossunder of its average.  
Example: Indicator 1 Input Short set to 40, this means that when the momentum crosses under its average from indicator 1, upon the close of this crossunder the momentum must be below the level 40 in order for this condition to be met to take a short position. 
The lower the level, the stronger the downwards momentum must be, and therefore by using lower levels for this input, the script will search for stronger directional moves leaving less chance for the trade to move against you. 
 
 Summary of Input Group: Indicator 1 Input Long/Short   
These two inputs are so important to your strategy because at the end of the day no matter how you set it up, it's still a momentum-based strategy. With that being said the level of momentum or the strength needed in order to take trades is of course going to be a key decider in the successfulness of the strategy.  When optimizing these two inputs make sure to take into account what the overall market conditions are, meaning if it’s a bull market maybe make the momentum needed to take a long slightly less comparatively to the amount needed to take a short, in other words make long conditions less specific and short conditions more specific. Slight variations of this input can have very big effects, even changing it by 1 or 2 can make a major difference.  In might even be good to consider starting optimization with these inputs and then work the rest of the strategy out from there.  A lot could be said about these inputs and more docs will be added in order to further explain more strategy approaches revolving around them, for now don’t hesitate to ask any questions.  
 
 Indicator 2 Red   
This input is used as a sort of chop filter at its base level, however if used correctly it can be a much broader filter for what areas of the market you want to trade in.  
Indicator 2 shows as either red or green and is used as a confirmation when price crosses over it following the crossover of momentum and its average from indicator 1 to take a long position.  
If ticked on, Indicator 2 Red states a condition in order for the script to take a long position. (Default is on) 
The condition is that upon the crossover of the current price and Indicator 2, 10 bars ago indicator 2 must have been red.  
The reason for this input is because the current color of indicator 2 upon the crossover must also be red. However, this condition is hard coded in and cannot be changed by any input.  
This is because the type of trade being targeted is that of a type of reversal or continuation.  
If indicator 2 showed green 10 bars ago and is currently red this would indicate that a top was just reached, and price is reversing downwards making this not a good area to take a long. 
Another scenario if indicator 2 showed green 10 bars ago and is currently red is that there is currently a sideways trend going on or otherwise known as chop, also not an ideal area to take a long  
However, if 10 bars ago indicator 2 was red and it's currently red this would indicate a more prolonged pullback. 
If all conditions are met and we know that price has been pulling back, now we can enter a long with more knowledge pointing to price reversing upwards from a downwards trend, or continuing its upwards trend after a pullback.  
 
 Indicator 2 Green  
This input is used as a sort of chop filter at its base level, however if used correctly it can be a much broader filter for what areas of the market you want to trade in.  
Indicator 2 shows as either red or green and is used as a confirmation when price crosses under it following the crossunder of momentum and its average from indicator 1 to take a short position.  
If ticked on, Indicator 2 Green states a condition in order for the script to take a short position. (Default is on) 
The condition is that upon the crossunder of the current price and Indicator 2, 10 bars ago indicator 2 must have been green.  
The reason for this input is because the current color of indicator 2 upon the crossunder must also be green. However, this condition is hard coded in and cannot be changed by any input.  
This is because the type of trade being targeted is that of a type of reversal or continuation.  
If indicator 2 showed red 10 bars ago and is currently green this would indicate that a bottom was just reached, and price is reversing upwards making this not a good area to take a short. 
Another scenario if indicator 2 showed red 10 bars ago and is currently green is that there is currently a sideways trend going on or otherwise known as chop, also not an ideal area to take a short. 
However, if 10 bars ago indicator 2 was green and it's currently green this would indicate a more prolonged upwards movement. 
If all conditions are met and we know that price has been moving up, now we can enter a short with more knowledge pointing to price reversing downwards from an upwards trend, or continuing its downwards trend after a bounce up. 
 
 Summary of Input Group: Indicator 2 Red/Green   
Similar to Indicator 1 Greater/Less Than Long/Short, the goal of these inputs is to try to get a picture of what the previous recent market has been doing. By getting this picture it's easier to find different areas of the market more ideal for trades.  Different from Indicator 1 Greater/Less Than Long/Short though, Indicator 2 Red/Green is directly correlated to the price action in the market rather than the momentum. By switching these on or off you are setting more or less specific conditions for taking trades. Some markets require this extra condition to lower your risk in your strategy, however others may not.  
 
 Pivot Low   
This input is used to define the number of bars the script will look back to grab a pivot low when taking a long position.  
This pivot low is then used to set the stop loss when entering a long position.  
This input is very important and optimizing it correctly can be extremely crucial to your strategies success.  
The Strategy Developer tool uses a 1:1 risk to reward ratio when setting your first take profit point, so when the script looks back to get a pivot low based on the input you set, it will then set your first take profit at an equal ratio to the stop loss found from the pivot low.  
The goal in optimizing this input is to give enough lookback to find real pivot points where price has reversed off of, but not to give too much lookback where its grabbing previous pivot points unrelated to the current move of momentum the script is giving a long signal from.  
Consider the type of trades you're looking for in your strategy and what timeframe you are trying to trade on.  
Longer swing trades which aim to catch bigger moves in the market, possibly on higher time frames, may require a further lookback in order to get your take profits in the correct positioning to catch the desired move, and not exit early before the trade has fully played out.  
Shorter scalp trades may aim to catch smaller moves and therefore you don’t want to allow for too much risk by having a large stop loss and large take profits as a result.  
 
 Pivot Low 2   
Pivot low 2 can be thought of as a backup lookback in order to get the correct pivot low. 
In an input which will be discussed shortly called Pivot Low Minimum, you can set a minimum percentage for your pivot low to be, if the pivot low does not meet the minimum then the script will look to Pivot Low 2’s input to use as a bar lookback in order to get the correct pivot low.  
This input is used because you might find a Pivot Low input that works well for the majority of the trades in your back tested strategy, however, there will always be outliers and when this Pivot Low input falls short of getting the correct level to put your stop losses at, Pivot Low 2 is used.  
Pivot Low 2’s input should always be higher than Pivot Low’s input, that way you can allow the script to look back further in time to find the correct level when the minimum is not met.  
 
 Pivot High  
This input is used to define the number of bars the script will look back to grab a pivot high when taking a short position.  
This pivot high is then used to set the stop loss when entering a short position.  
This input is very important and optimizing it correctly can be extremely crucial to your strategies success.  
The Strategy Developer tool uses a 1:1 risk to reward ratio when setting your first take profit point, so when the script looks back to get a pivot high based on the input you set, it will then set your first take profit at an equal ratio to the stop loss found from the pivot high.  
The goal in optimizing this input is to give enough lookback to find real pivot points where price has reversed off of, but not to give too much lookback where its grabbing previous pivot points unrelated to the current move of momentum the script is giving a short signal from.  
Consider the type of trades you're looking for in your strategy and what timeframe you are trying to trade on.  
Longer swing trades which aim to catch bigger moves in the market, possibly on higher time frames, may require a further lookback in order to get your take profits in the correct positioning to catch the desired move, and not exit early before the trade has fully played out.  
Shorter scalp trades may aim to catch smaller moves and therefore you don’t want to allow for too much risk by having a large stop loss and large take profits as a result.  
 
 Pivot High 2   
Pivot high 2 can be thought of as a backup lookback in order to get the correct pivot high. 
In an input which will be discussed shortly called Pivot High Minimum, you can set a minimum percentage for your pivot high to be, if the pivot high does not meet the minimum then the script will look to Pivot High 2’s input to use as a bar lookback in order to get the correct pivot high.  
This input is used because you might find a Pivot High input that works well for the majority of the trades in your back tested strategy, however, there will always be outliers and when this Pivot High input falls short of getting the correct level to put your stop losses at, Pivot High 2 is used.  
Pivot High 2’s input should always be higher than Pivot High’s input, that way you can allow the script to look back further in time to find the correct level when the minimum is not met. 
 
 Pivot Low Risk Tolerance   
This input is very important in managing the risk associated with your strategy. 
Pivot Low Risk Tolerance is defining a maximum percentage the pivot low can be away from your entry.  
Since the pivot low that’s found is assigned to your stop loss and directly affects the placement of your take profits when taking a long position, making sure the pivot low isn’t too far down is crucial.  
Depending on the types of trades you're aiming to take, the timeframe you choose to trade on, and the leverage you use in your strategy, you may want to assign a higher risk tolerance or a lower one.  
Example: Pivot Low Risk Tolerance input set to 3, this means that when all other conditions are met in order to take a long position, when searching for the pivot low in order to set a stop loss, if the script finds the pivot low is greater than 3% away from the entry point, it will not take the trade.  
 
 Pivot High Risk Tolerance   
This input is very important in managing the risk associated with your strategy. 
Pivot High Risk Tolerance is defining a maximum percentage the pivot high can be away from your entry.  
Since the pivot high that’s found is assigned to your stop loss and directly affects the placement of your take profits when taking a short position, making sure the pivot high isn’t too far up is crucial.  
Depending on the types of trades you're aiming to take, the timeframe you choose to trade on, and the leverage you use in your strategy, you may want to assign a higher risk tolerance or a lower one.  
Example: Pivot High Risk Tolerance input set to 3, this means that when all other conditions are met in order to take a short position, when searching for the pivot high in order to set a stop loss, if the script finds the pivot high is greater than 3% away from the entry point, it will not take the trade. 
 
 Pivot Low Minimum   
Sometimes when searching for the pivot low, the script's defined lookback may not be enough to find the proper pivot point.  
This can cause improper placement of stop losses and take profits and may cause trades to be exited early before they can fully play out in your favor.  
Pivot Low Minimum is an input used to combat this problem, when the script finds a pivot low that does not meet the minimum percentage away from the entry point, it will then turn to Pivot Low 2 input in order to gain a further lookback and grab the correct pivot point to set your stop loss and take profits with.  
When reading and setting this input, understand that setting it to 1 means there is no minimum, setting it to 0.9 would mean the minimum is a 10% difference between the pivot low and your entry point.  
Think of it in terms of decimals and their equivalent percentage, 0.1 is equal to 10%, 0.01 is equal to 1%.  
Whatever percentage you want to set for a minimum, convert it to a decimal, then simply subtract it from 1.  
Example: Say you desire a 1.5% minimum pivot low and as a result an equivalent stop loss of 1.5% below your long entry and furthermore a take profit 1.5% above your long entry since the script uses a 1:1 ratio. Converting 1.5% to a decimal would give you 0.015, then subtracting it from 1 would give you 0.985, this would be the input assigned to Pivot Low Minimum. 
 
 Pivot High Minimum   
Sometimes when searching for the pivot high, the script's defined lookback may not be enough to find the proper pivot point.  
This can cause improper placement of stop losses and take profits and may cause trades to be exited early before they can fully play out in your favor.  
Pivot High Minimum is an input used to combat this problem, when the script finds a pivot high that does not meet the minimum percentage away from the entry point, it will then turn to Pivot High 2 input in order to gain a further lookback and grab the correct pivot point to set your stop loss and take profits with.  
When reading and setting this input, understand that setting it to 1 means there is no minimum, setting it to 0.9 would mean the minimum is a 10% difference between the pivot high and your entry point.  
Think of it in terms of decimals and their equivalent percentage, 0.1 is equal to 10%, 0.01 is equal to 1%.  
Whatever percentage you want to set for a minimum, convert it to a decimal, then simply subtract it from 1.  
Example: Say you desire a 1.5% minimum pivot high and as a result an equivalent stop loss of 1.5% above your short entry and furthermore a take profit 1.5% below your short entry since the script uses a 1:1 ratio. Converting 1.5% to a decimal would give you 0.015, then subtracting it from 1 would give you 0.985, this would be the input assigned to Pivot High Minimum. 
 
 Summary of Input Group: Pivot Low/High - Pivot Low/High 2 – Pivot Low/High Risk Tolerance – Pivot Low/High Minimum  
The first key takeaway from all these inputs is that your stop losses and take profits will be directly affected through optimizing any of them. The second key takeaway is that these inputs are crucial in managing the risk in your strategy, and while this has been said many times throughout the guide for various inputs, when it comes to stop losses and take profits it is especially true. Having a stop loss which is too high opens up the possibility for much bigger losses, and as a result your take profits will also be too high, minimizing the chance of any of them being hit. Having a stop loss which is too low increases the chance that your trade will get stopped out preemptively, before the trade can mature and move in your favor because remember that trades will not always move immediately in the intended direction, a good amount of patience is often involved in creating consistent successful trades and a successful strategy as such. On the same note, too low of a stop loss could also mean you are missing out on unrealized profit since your take profits are a direct result of the stop loss which is found.  When optimizing your pivot low/high risk tolerance, think not about how much you are willing to lose on a single trade, but how much your portfolio can actually afford to lose not just on a single trade but multiple trades, sometimes even in a row. Obviously, the goal in creating a strategy is that you avoid losing trades and especially multiple in a row, however, there are many things that can’t be accounted for. The only way to manage this unaccounted risk is to use proper risk management and not open yourself up to big losses even in the worst most unlikely scenarios. Even if you don’t lose multiple trades in a row, ask yourself, could I afford to lose multiple trades with the risk tolerance I have set if everything were to go to $hit, (hopefully it would not), but in the off chance it did, instead of beating yourself up over what you did wrong, you’ll be patting yourself on the back for what you did right.  
 
 TP2-4 Long Placement   
The first thing to understand about the take profit placement is that our system of stop losses and take profits uses a 1:1 risk to reward ratio for the first stop loss and first take profit.  
This means that if your stop loss falls 2% below your long entry, your first take profit will be 2% above your long entry, hence 1:1.  
As for take profits 2-4, they are just extensions of that ratio. This means that if TP2 Long Placement is set to 1.5, the ratio for your second take profit is 1:1.5.  
Using the same percentage from the second bullet point being 2%, we can now gather that with a 1:1.5 ratio our second take profit would be at 3% above our long entry.  
The same applies for the rest of the take profits, meaning whatever the take profit is set at regardless of which one, apply that number to the second placeholder of the ratio.  
Example: First stop loss falls 2% below long entry. TP2 Long Placement input set to 1.5; risk to reward ratio is 1:1.5; corresponding percentage would be a 3% gain. TP3 Long Placement input set to 2; risk to reward ratio is 1:2; corresponding percentage would be a 4% gain. TP4 Long Placement input set to 2.5; risk to reward ratio is 1:2.5; corresponding percentage would be a 5% gain.  
The next key thing to understand about the trailing take profits system is the position size being sold at each take profit and therefore how the strategy tracker calculates your strategy's profit.  
At the first take profit, 50% of your position is being calculated as sold, locking in good profits off the bat.  
At TP2, 20% of your position is being calculated as sold, leaving a remaining 30% open to gain more profit.  
At TP3, another 20% of your position is being calculated as sold, leaving 10% to collect any additional possible gains.  
At TP4 the remaining 10% of your position is sold and the trade will be fully closed out.  
 
 SL2-4 Long Placement   
Our system of trailing stop losses is completely similar to that of our trailing take profits. 
Just like the trailing take profits, the inputs for stop losses 2-4 are also used as the second placeholders in the risk to reward ratio.  
This may be confusing since generally stop losses are associated with a loss on your position, however, the only stop loss which results in a loss on your position is the first one, not stop losses 2-4.  
This is because once your first take profit is hit on your long, your stop loss will automatically move up to the price equivalent to the ratio which you set using these inputs that lies in profit. 
Example: Since your first take profit will always be at a 1:1 risk to reward ratio with your stop loss, your second take profit could be at a 1:0.8 ratio. So, to clarify, once your first take profit is hit at a 1:1, your original first stop loss will now be moved up in profits to just below your first take profit at a 1:0.8 risk to reward ratio. This only happens AFTER the first take profit is hit.  
For stop losses 3 and 4, the same logic is true, once TP2 is hit, your second stop loss will now be moved up to the placement of SL3 which will fall somewhere below TP2. Once TP3 is hit, your third stop loss will now be moved up to the placement of SL4 which will fall somewhere below TP3. If stop loss 4 does not get hit, then the only thing left to happen is for TP4 to hit and the trade will fully close out.  
The one major difference between our system of trailing stop losses and take profits is that no matter what stop loss is hit, the entire remainder of your position will be calculated as sold.  
So, if your first take profit hits and sells 50% of your long position, but the trade does not continue upwards and moves down to your second stop loss, the remaining 50% of your position will be calculated as sold.  
The same applies to SL3 and SL4, so at SL3 the remaining 30% of your position will be calculated as sold, and at SL4 the remaining 10% will be calculated as sold.  
Your trailing stop loss placement is dependent on what types of trades you desire. For shorter scalps on smaller timeframes, it's recommended to place each stop loss just below each corresponding take profit for long trades.  
This way you leave just enough room for the trade to continue upwards if there is enough momentum, but you don’t open yourself up to losing your unrealized profit if it does not make this continuation.  
If you desire longer swing trades on higher timeframes, it might be a good idea to leave more room in between the take profit and corresponding stop loss.  
This way you leave more room for the trade to mature and move in your favor since when trading longer moves, often they will not shoot straight up but rather have a series of small pullbacks throughout the more general upwards trend.  
Note that when a long trade is first entered the only stop loss and take profit in play are your original stop loss found by the pivot low which would result in a loss, and the first take profit at a 1:1 risk to reward ratio from that pivot low.  
 
 TP2-4 Short Placement   
The first thing to understand about the take profit placement is that our system of stop losses and take profits uses a 1:1 risk to reward ratio for the first stop loss and first take profit.  
This means that if your stop loss falls 2% above your short entry, your first take profit will be 2% below your short entry, hence, 1:1.  
As for take profits 2-4, they are just extensions of that ratio. This means that if TP2 Short Placement is set to 1.5, the ratio for your second take profit is 1:1.5.  
Using the same percentage from the second bullet point being 2%, we can now gather that with a 1:1.5 ratio our second take profit would be at 3% below our short entry.  
The same applies for the rest of the take profits, meaning whatever the take profit is set at regardless of which one, apply that number to the second placeholder of the ratio.  
Example: First stop loss falls 2% above short entry. TP2 Short Placement input set to 1.5; risk to reward ratio is 1:1.5; corresponding percentage would be a 3% gain. TP3 Short Placement input set to 2; risk to reward ratio is 1:2; corresponding percentage would be a 4% gain. TP4 Short Placement input set to 2.5; risk to reward ratio is 1:2.5; corresponding percentage would be a 5% gain.  
The next key thing to understand about the trailing take profits system is the position size being sold at each take profit and therefore how the strategy tracker calculates your strategy's profit.  
At the first take profit, 50% of your position is being calculated as sold, locking in good profits off the bat.  
At TP2, 20% of your position is being calculated as sold, leaving a remaining 30% open to gain more profit.  
At TP3, another 20% of your position is being calculated as sold, leaving 10% to collect any additional possible gains.  
At TP4 the remaining 10% of your position is sold and the trade will be fully closed out.  
 
 SL2-4 Short Placement   
Our system of trailing stop losses is completely similar to that of our trailing take profits. 
Just like the trailing take profits, the inputs for stop losses 2-4 are also used as the second placeholders in the risk to reward ratio.  
This may be confusing since generally stop losses are associated with a loss on your position, however, the only stop loss which results in a loss on your position is the first one, not stop losses 2-4.  
This is because once your first take profit is hit on your short, your stop loss will automatically move down to the price equivalent to the ratio which you set using these inputs that lies in profit. 
Example: Since your first take profit will always be at a 1:1 risk to reward ratio with your stop loss, your second take profit could be at a 1:0.8 ratio. So, to clarify, once your first take profit is hit at a 1:1, your original first stop loss will now be moved down in profits to just below your first take profit at a 1:0.8 risk to reward ratio. This only happens AFTER the first take profit is hit.  
For stop losses 3 and 4, the same logic is true, once TP2 is hit, your second stop loss will now be moved down to the placement of SL3 which will fall somewhere above TP2. Once TP3 is hit, your third stop loss will now be moved down to the placement of SL4 which will fall somewhere above TP3. If stop loss 4 does not get hit, then the only thing left to happen is for TP4 to hit and the trade will fully close out.  
The one major difference between our system of trailing stop losses and take profits is that no matter what stop loss is hit, the entire remainder of your position will be calculated as sold.  
So, if your first take profit hits and sells 50% of your short position, but the trade does not continue downwards and moves up to your second stop loss, the remaining 50% of your position will be calculated as sold.  
The same applies to SL3 and SL4, so at SL3 the remaining 30% of your position will be calculated as sold, and at SL4 the remaining 10% will be calculated as sold.  
Your trailing stop loss placement is dependent on what types of trades you desire. For shorter scalps on smaller timeframes, it's recommended to place each stop loss just above each corresponding take profit for short trades.  
This way you leave just enough room for the trade to continue downwards if there is enough momentum, but you don’t open yourself up to losing your unrealized profit if it does not make this continuation.  
If you desire longer swing trades on higher timeframes, it might be a good idea to leave more room in between the take profit and corresponding stop loss.  
This way you leave more room for the trade to mature and move in your favor since when trading longer moves, often they will not shoot straight down but rather have a series of small bounces throughout the more general downwards trend.  
Note that when a short trade is first entered the only stop loss and take profit in play are your original stop loss found by the pivot high which would result in a loss, and the first take profit at a 1:1 risk to reward ratio from that pivot high. 
 
 Summary of Take Profit/Stop Loss Placement:  
Correctly placed take profits and stop losses are essential in having a successful strategy and proper risk management. With that being said there are also many ways in which to use this system. Deciding how to set them up is really just a matter of determining the trading style you aim to succeed with. Once this has been determined, the placement of take profits and stop losses should be easier to configure. However, if there is any confusion on either of these topics as the ratios and corresponding TP/SL can get confusing, please do not hesitate to ask further questions in our discord!  
 
 Leverage Long   
Leverage Long input simply defines the leverage used in your long positions, and is used in calculating the profit in Strategy Tracker  
A rundown of risk associated with using leverage will not be given here since it should assume that if you're using leverage, you should already understand the risks. 
If you are not using any leverage, then set Leverage Long input to 1. 
 
 Long Position Size   
This input defines the position size you are using in your long trades.  
This input is also used in calculating profit in Strategy Tracker.  
 
 Long Hedge Position Size   
This input is used to define the position size of long hedge positions. 
This input is also used in calculating profit in Strategy Tracker.  
Important: Your Long Hedge Position Size should always be half of your Long Position Size for accurate profit calculation.  
 
 Double Long Position Size   
This input is used to define the position size when in a double long.  
This input is also used in calculating profit in Strategy Tracker  
Important: Your Double Long Position Size should always be double your Long Position Size for accurate profit calculation.  
 
 Short Position Size   
This input defines the position size you are using in your short trades.  
This input is also used in calculating profit in Strategy Tracker.  
 
 Short Hedge Position Size   
This input is used to define the position size of short hedge positions. 
This input is also used in calculating profit in Strategy Tracker.  
Important: Your Short Hedge Position Size should always be half of your Short Position Size for accurate profit calculation.  
 
 Double Short Position Size   
This input is used to define the position size when in a double short.  
This input is also used in calculating profit in Strategy Tracker  
Important: Your Double Short Position Size should always be double your Short Position Size for accurate profit calculation. 
 
 A Message From the Developer PLEASE READ!!!   
If you have made it this far in the guide, I applaud you and thank you for sticking with it as I know there is a lot of information here! This is not an exaggeration when I say there are hundreds of millions of possible variations that could be applied throughout all the inputs which is why I much prefer to call this a tool rather than an algorithm. Algorithm is a loaded word in my opinion as it comes with an implication of guarantee in the trades being made. This is not meant to discourage anybody from taking trades based off the tool which is also why I provided the option for automated alerts which through third party software can turn into automated trades; if you have the confidence in your strategy by all means I encourage you to trade it, automated or not. Just please understand that it's highly recommended to also apply your own knowledge and analysis before taking a trade as historical back testing data has its limitations and cannot always account for current market conditions. The real applicability does not fall in what the back tester window is saying you would have made or how accurate your strategy would have been, it's within the sheer number of markets and scenarios this tool can be used in and the information you can get which a human just can’t comprehend all at once; its literally endless. I urge all of you to be creative and think outside the box about what you can do with such a powerful tool at your fingertips. After all this is the reason why so many inputs were provided. Another main goal of this project was to give users a better understanding of risk management. It can be hard to manage your risk when it’s all kept in your head, but when you can modify your strategy to better manage your risk by simply optimizing a few inputs, it’s a lot easier to comprehend and actually apply when trading. The last thing I want to say is have fun working through the possible learning curve in using this tool, it may be a process but enjoy it because the one thing I can guarantee is that you will come out the other side a better trader than before!  
Cracking Cryptocurrency - Bottom Feeder Strategy TesterBottom Feeder - Strategy Tester 
The Bottom Feeder is designed to algorithmically detect significantly oversold conditions in price that represent profitable buying opportunities. Combining this with it’s unique Stop and Target System, the Bottom Feeder is designed to return consistent return with minimal draw down. Whether used as a Market Bottom Detector or as a system for executing safe, profitable mean reversion trades, the Bottom Feeder is a powerful tool in any trader’s arsenal.
Bottom Feeder was designed to be used on BTCUSD, however it is also effective on other USD/USDT pairs. One will have to check the individual pair they wish to trade with the Strategy Tester to simulate performance.
 Strategy displayed is from 2018-2021 on **Conservative Mode** with Percent of Equity (30%) enabled. 
 Options 
Let’s go through the input options one by one, so that you are able to comfortably navigate all that this indicator has to offer. The link below will display a picture of the layout of the settings for your convenience.
For the sake of simplicity, let’s note now that all settings marked **Conservative Mode** will not work in Aggressive Mode.
 Mode : Determines how aggressively Bottom Feeder generates a buy signal. In Conservative Mode, trades can only be opened once per candle and the stop and target will update as new signals appear. In Aggressive Mode, a separate trade is opened each time Bottom Feeder signals, which may be multiple times within one Daily candle.
 Position Sizing Strategy : Determines what Risk Management system you will deploy when trading Bottom Feeder. Your options are “Percent of Equity” and “Distance to Stop Loss”. If Percent of Equity is selected, a trade size will be equal to a percentage of your equity, pursuant to the value in the ‘Percent of Equity’ box. If Distance to Stop Loss is selected, then your Position Size will be determined based off the distance to your stop loss and the value in the ‘Risk Percentage’ box.
 Percent Of Equity : Determines what percentage of your equity will be allocated to each trade when ‘Position Sizing Strategy’ is enabled.
 Risk Percentage : Determines the size of each trade if ‘Distance to Stop Loss’ strategy is enabled. This value reflects what percent of your account you will lose per trade if the trade hits your stop loss.
 Plot Target and Stop Loss : Toggles on/off the visualized take profit and stop losses on the chart.
 **Conservative Mode** TP Multiplier : This is an input box, it requires a float value. That is, it can accept either a whole number integer or a number with a decimal. This number will determine your Take Profit target. It will take whatever number is entered into this box and multiply the Average True Range against it to determine your Take Profit.
 **Conservative Mode** SL Multiplier : See above - this will modify your Stop Loss Value.
 **Conservative Mode** Average or Median True Range : This is a drop-down option, the two options are Average True Range or Median True Range. If Average True Range is selected, then this indicator will use the Average True Range calculation, that is, the average of a historical set of True Range values to determine the Average True Range value for Target and Stop Loss calculation. If Median True Range is selected, it will not take an average and will instead take the Median value of your historical look back period.
 **Conservative Mode** True Range Length : This is an input that requires an integer. This will represent your historical lookback period for Average/Median True Range calculation.
 **Conservative Mode** True Range Smoothing : This is a drop-down with the following options: Exponential Moving Average ( EMA ), Simple Moving Average ( SMA ), Weighted Moving Average ( WMA ), Relative Moving Average (RMA). This will determine the smoothing type for calculating the Average True Range if it is selected. Note: if Median True Range is selected above, this option will not have any effect as there is no smoothing for a Median value.
 **Conservative Mode** Custom True Range Value? : This is a true/false option that is false by default. If enabled, it will override the Average/Median True Range calculation in favor of a users custom True Range value to be input below.
 **Conservative Mode** Custom True Range Value : This is an input box that requires a float value. If Custom True Range is enabled this is where a user will input their desired custom True Range value for Target and Stop Loss calculation.
 From Month/Day/Year to Month/Day/Year : This sets the Time Frame of your backtest for the Bottom Feeder Strategy. It will run FROM the date selected TO the date selected.
 Stop and Target Description 
Because Bottom Feeder is designed only to scalp the various market bottoms that can appear over time in the market and not to identify trends or to trade ranges, it’s imperative that the indicator notify us not just to when to enter our trades, but when to exit! In the service of that, CC Bottom Feeder has a built in Stop and Target system that tracks and displays the stop loss and take profit levels of each individual open trade, whether in Aggressive or Conservative Mode.
Conservative Mode Targeting: In Conservative Mode, Bottom Feeder signals are aggregated into a compound trade. The signal will appear as a green label pointing up below a candle, and will appear upon a candle close. If Bottom Feeder then generates another signal the stop loss and target price will be updated. The process will continue until the aggregated trade completes in either direction. On a trade with multiple signals, a larger position is slowly entered into upon each buy signal.
Aggressive Mode Targeting: In Aggressive Mode, Bottom Feeder signals are individually displayed as they are generated, regardless of how many signals are generated on any single candle. If Bottom Feeder continues to signal, each individual open trade will have their own stop loss and target that will be displayed on the chart until the individual trade completes in either direction. As opposed to a large compound position, aggressive mode represents a higher number of independent signals with their own stop and target levels.
Stop losses and targets are designed to be hard, not soft. That is, they are intended to be stop market orders, not mental stop losses. If price wicks through the target or stop, it will activate.
8AM # 9AM CRM Trading Model - Complete Beginner's Guide
## BEFORE YOU START
**Important:** This strategy only works during market open hours (9:00 AM - 12:00 PM EST for NAS100/SPX). Do not trade outside these hours.
**Risk Warning:** Start with a demo account first. Trade 2-4 weeks on demo before risking real money.
---
## STEP 1: SET UP YOUR TRADINGVIEW CHART
1. Open TradingView
2. Search for **NAS100** (Nasdaq 100 Index)
3. Click the **5-minute (5m)** timeframe button at the top
Your chart should now show:
- Blue dotted lines (8AM candle range)
- Orange dotted lines (key level)
- Small SWEEP triangles when price breaks levels
---
## STEP 2: UNDERSTAND THE SETUP
The indicator shows a **4-step checklist** in the top-right HUD (Heads Up Display):
**STEP 1: 8AM Range Set**
- The indicator automatically captures the 8:00-9:00 AM candle's high and low
- You should see two faint blue dotted lines
- Status will say "SET" when ready
- Nothing to do here - it's automatic
**STEP 2: Key Level Found**
- The indicator finds the nearest swing low or high (support/resistance)
- You'll see a faint orange dotted line
- Status will say "FOUND" when ready
**STEP 3: Turtle Sweep**
- Price must break ONE end of the 8AM range
- You'll see a small blue triangle labeled "SWEEP" appear below the candle
- This means price swept the low (bullish setup) or swept the high (bearish setup)
**STEP 4: Confirmations**
- The indicator looks for:
  - IFEG (bullish or bearish imbalance)
  - Order Block (reversal candle pattern)
- Status shows YES or NO for each
---
## STEP 3: WAIT FOR THE SIGNAL
Keep watching the **HUD on the right side**. It will show:
```
WAITING FOR SETUP
STEP 1: 8AM Range Set: SET
STEP 2: Key Level Found
STEP 3: Turtle Sweep: NO
STEP 4: Confirmations
- IFEG: NO
- Order Block: NO
WHEN ALL 4 ✓ → TRADE
```
When **ALL FOUR steps show YES**, the indicator will:
1. Draw a **HUGE triangle** on the chart saying "BUY NOW" or "SELL NOW"
2. Draw three bold lines:
   - **WHITE line** = Entry price
   - **RED dashed line** = Stop loss
   - **GREEN line** = Take profit
3. Update the HUD with your trade numbers
---
## STEP 4: PLACE YOUR TRADE
When you see the BUY NOW or SELL NOW signal:
**For a LONG (BUY) trade:**
1. Look at the **WHITE line** = Your entry price
2. Look at the **RED dashed line** = Your stop loss (where to cut losses)
3. Look at the **GREEN line** = Your take profit (your target)
Check the **HUD** for exact numbers:
- Entry Price:  
- Stop Loss:  
- Take Profit:  
- Risk:  
- Reward:  
- R:R Ratio:  
**On your broker (MT4/MT5 or whatever you use):**
1. Click BUY/SELL
2. Set Entry = Entry Price from indicator
3. Set Stop Loss = SL price from indicator
4. Set Take Profit = TP price from indicator
5. Click TRADE
**For a SHORT (SELL) trade:** Same steps but click SELL instead of BUY
---
## STEP 5: MANAGE YOUR TRADE
Once you're in the trade:
1. **Let it run** - Don't move your stop loss or take profit
2. **Watch for price to hit your targets:**
   - If price hits the GREEN line first → You WIN (take profit hits)
   - If price hits the RED line first → You LOSE (stop loss hits)
   - If price breaks the WHITE line lower → Exit manually
3. **Don't hold past noon EST** - This strategy stops working after market lunch
4. **Close any open trades by 12:00 PM EST**
---
## IMPORTANT RULES
**DO THIS:**
- Only trade between 9:00 AM and 12:00 PM EST
- Use a 5-minute chart
- Follow the exact entry/SL/TP levels from the indicator
- Start with 1 lot/contract on demo
- Keep a trading journal (write down every trade)
- Risk no more than 2% of your account per trade
**DON'T DO THIS:**
- Don't move your stop loss (moving stops = losing strategy)
- Don't ignore the indicator signals and "feel" your way in
- Don't trade outside the 9AM-12pm window
- Don't use a 1-hour or 15-minute chart (must be 5-min)
- Don't trade on demo for just 2 days then go live
- Don't risk more than 2% per trade
---
## REAL EXAMPLE
**9:15 AM EST - Price sweeps 8AM low, IFEG forms, Order Block confirmed**
Your indicator shows:
```
ACTIVE TRADE - LONG
Entry: 24,865.50
Stop Loss: 24,820.00
Take Profit: 24,920.00
Risk: 45.50 pts
Reward: 54.50 pts
R:R Ratio: 1:1.2
```
You place trade:
- BUY 1 contract at 24,865.50
- Stop at 24,820.00 (if wrong, you lose 45 points)
- Target 24,920.00 (if right, you gain 54 points)
**Result:** Price goes to 24,920 and your take profit hits. You WIN 54 points.
---
## DEMO ACCOUNT TESTING CHECKLIST
Before trading real money, complete this on demo:
-   Trade for 5 trading days minimum
-   Execute at least 10 trades
-   Win rate is 50% or better
-   Each loss is smaller than each win (following your R:R)
-   You didn't miss any signals
-   You stuck to the rules (no moving stops, proper timeframe, etc)
-   You made more money than you lost overall
If you don't meet these criteria, keep practicing on demo. Don't go live yet.
---
## COMMON MISTAKES NEW TRADERS MAKE
**Mistake 1: Wrong Timeframe**
- Using 1h or 15m instead of 5m chart
- Result: Misses setups or generates false signals
**Mistake 2: Moving Stop Loss**
- Indicator says SL at 24,820, but you move it to 24,800 to "give it room"
- Result: You get stopped out randomly
**Mistake 3: Trading Outside Hours**
- Trading at 12:30 PM or 2:00 PM
- Result: Strategy stops working, you lose money
**Mistake 4: Ignoring the Signal**
- Indicator says BUY, but you "feel" like it won't work
- Result: You miss winners or take trades you shouldn't
**Mistake 5: Not Using Stop Loss**
- "I'll just watch it and exit if it goes bad"
- Result: One bad move and you're down $500 before you can react
---
## WHAT TO EXPECT
**Week 1:** You'll find the indicator confusing. That's normal. Watch 5+ setups.
**Week 2:** You'll start to understand when setups are forming.
**Week 3-4:** You should see some winning trades. Others will hit stop loss. This is normal.
**After 4 weeks:** You should have enough demo data to decide if this strategy works for you.
---
## FINAL ADVICE
1. **Trade small first** - 1 lot on demo, then 1 lot on live
2. **Keep a journal** - Write down entry, stop, target, result for every trade
3. **Don't expect 100% win rate** - Even good strategies win 50-60% of trades
4. **Focus on following the rules** - Not on making money fast
5. **Ask yourself:** Am I following the indicator exactly, or am I guessing?
The traders who make money follow the system. The traders who lose money ignore it and trade on "feel."
Which trader will you be?
Hellenic EMA Matrix - Α Ω PremiumHellenic EMA Matrix - Alpha Omega Premium
Complete User Guide
Table of Contents
Introduction
Indicator Philosophy
Mathematical Constants
EMA Types
Settings
Trading Signals
Visualization
Usage Strategies
FAQ
Introduction
Hellenic EMA Matrix is a premium indicator based on mathematical constants of nature: Phi (Phi - Golden Ratio), Pi (Pi), e (Euler's number). The indicator uses these universal constants to create dynamic EMAs that adapt to the natural rhythms of the market.
Key Features:
6 EMA types based on mathematical constants
Premium visualization with Neon Glow and Gradient Clouds
Automatic Fast/Mid/Slow EMA sorting
STRONG signals for powerful trends
Pulsing Ribbon Bar for instant trend assessment
Works on all timeframes (M1 - MN)
Indicator Philosophy
Why Mathematical Constants?
Traditional EMAs use arbitrary periods (9, 21, 50, 200). Hellenic Matrix goes further, using universal mathematical constants found in nature:
Phi (1.618) - Golden Ratio: galaxy spirals, seashells, human body proportions
Pi (3.14159) - Pi: circles, waves, cycles
e (2.71828) - Natural logarithm base: exponential growth, radioactive decay
Markets are also a natural system composed of millions of participants. Using mathematical constants allows tuning into the natural rhythms of market cycles.
Mathematical Constants
Phi (Phi) - Golden Ratio
Phi = 1.618033988749895
Properties:
Phi² = Phi + 1 = 2.618
Phi³ = 4.236
Phi⁴ = 6.854
Application: Ideal for trending movements and Fibonacci corrections
Pi (Pi) - Pi Number
Pi = 3.141592653589793
Properties:
2Pi = 6.283 (full circle)
3Pi = 9.425
4Pi = 12.566
Application: Excellent for cyclical markets and wave structures
e (Euler) - Euler's Number
e = 2.718281828459045
Properties:
e² = 7.389
e³ = 20.085
e⁴ = 54.598
Application: Suitable for exponential movements and volatile markets
EMA Types
1. Phi (Phi) - Golden Ratio EMA
Description: EMA based on the golden ratio
Period Formula:
Period = Phi^n × Base Multiplier
Parameters:
Phi Power Level (1-8): Power of Phi
Phi¹ = 1.618 → ~16 period (with Base=10)
Phi² = 2.618 → ~26 period
Phi³ = 4.236 → ~42 period (recommended)
Phi⁴ = 6.854 → ~69 period
Recommendations:
Phi² or Phi³ for day trading
Phi⁴ or Phi⁵ for swing trading
Works excellently as Fast EMA
2. Pi (Pi) - Circular EMA
Description: EMA based on Pi for cyclical movements
Period Formula:
Period = Pi × Multiple × Base Multiplier
Parameters:
Pi Multiple (1-10): Pi multiplier
1Pi = 3.14 → ~31 period (with Base=10)
2Pi = 6.28 → ~63 period (recommended)
3Pi = 9.42 → ~94 period
Recommendations:
2Pi ideal as Mid or Slow EMA
Excellently identifies cycles and waves
Use on volatile markets (crypto, forex)
3. e (Euler) - Natural EMA
Description: EMA based on natural logarithm
Period Formula:
Period = e^n × Base Multiplier
Parameters:
e Power Level (1-6): Power of e
e¹ = 2.718 → ~27 period (with Base=10)
e² = 7.389 → ~74 period (recommended)
e³ = 20.085 → ~201 period
Recommendations:
e² works excellently as Slow EMA
Ideal for stocks and indices
Filters noise well on lower timeframes
4. Delta (Delta) - Adaptive EMA
Description: Adaptive EMA that changes period based on volatility
Period Formula:
Period = Base Period × (1 + (Volatility - 1) × Factor)
Parameters:
Delta Base Period (5-200): Base period (default 20)
Delta Volatility Sensitivity (0.5-5.0): Volatility sensitivity (default 2.0)
How it works:
During low volatility → period decreases → EMA reacts faster
During high volatility → period increases → EMA smooths noise
Recommendations:
Works excellently on news and sharp movements
Use as Fast EMA for quick adaptation
Sensitivity 2.0-3.0 for crypto, 1.0-2.0 for stocks
5. Sigma (Sigma) - Composite EMA
Description: Composite EMA combining multiple active EMAs
Composition Methods:
Weighted Average (default):
   Sigma = (Phi + Pi + e + Delta) / 4
Simple average of all active EMAs
Geometric Mean:
   Sigma = fourth_root(Phi × Pi × e × Delta)
Geometric mean (more conservative)
Harmonic Mean:
   Sigma = 4 / (1/Phi + 1/Pi + 1/e + 1/Delta)
Harmonic mean (more weight to smaller values)
Recommendations:
Enable for additional confirmation
Use as Mid EMA
Weighted Average - most universal method
6. Lambda (Lambda) - Wave EMA
Description: Wave EMA with sinusoidal period modulation
Period Formula:
Period = Base Period × (1 + Amplitude × sin(2Pi × bar / Frequency))
Parameters:
Lambda Base Period (10-200): Base period
Lambda Wave Amplitude (0.1-2.0): Wave amplitude
Lambda Wave Frequency (10-200): Wave frequency in bars
How it works:
Period pulsates sinusoidally
Creates wave effect following market cycles
Recommendations:
Experimental EMA for advanced users
Works well on cyclical markets
Frequency = 50 for day trading, 100+ for swing
Settings
Matrix Core Settings
Base Multiplier (1-100)
Multiplies all EMA periods
Base = 1: Very fast EMAs (Phi³ = 4, 2Pi = 6, e² = 7)
Base = 10: Standard (Phi³ = 42, 2Pi = 63, e² = 74)
Base = 20: Slow EMAs (Phi³ = 85, 2Pi = 126, e² = 148)
Recommendations by timeframe:
M1-M5: Base = 5-10
M15-H1: Base = 10-15 (recommended)
H4-D1: Base = 15-25
W1-MN: Base = 25-50
Matrix Source
Data source selection for EMA calculation:
close - closing price (standard)
open - opening price
high - high
low - low
hl2 - (high + low) / 2
hlc3 - (high + low + close) / 3
ohlc4 - (open + high + low + close) / 4
When to change:
hlc3 or ohlc4 for smoother signals
high for aggressive longs
low for aggressive shorts
Manual EMA Selection
Critically important setting! Determines which EMAs are used for signal generation.
Use Manual Fast/Slow/Mid Selection
Enabled (default): You select EMAs manually
Disabled: Automatic selection by periods
Fast EMA
Fast EMA - reacts first to price changes
Recommendations:
Phi Golden (recommended) - universal choice
Delta Adaptive - for volatile markets
Must be fastest (smallest period)
Slow EMA
Slow EMA - determines main trend
Recommendations:
Pi Circular (recommended) - excellent trend filter
e Natural - for smoother trend
Must be slowest (largest period)
Mid EMA
Mid EMA - additional signal filter
Recommendations:
e Natural (recommended) - excellent middle level
Pi Circular - alternative
None - for more frequent signals (only 2 EMAs)
IMPORTANT: The indicator automatically sorts selected EMAs by their actual periods:
Fast = EMA with smallest period
Mid = EMA with middle period
Slow = EMA with largest period
Therefore, you can select any combination - the indicator will arrange them correctly!
Premium Visualization
Neon Glow
Enable Neon Glow for EMAs - adds glowing effect around EMA lines
Glow Strength:
Light - subtle glow
Medium (recommended) - optimal balance
Strong - bright glow (may be too bright)
Effect: 2 glow layers around each EMA for 3D effect
Gradient Clouds
Enable Gradient Clouds - fills space between EMAs with gradient
Parameters:
Cloud Transparency (85-98): Cloud transparency
95-97 (recommended)
Higher = more transparent
Dynamic Cloud Intensity - automatically changes transparency based on EMA distance
Cloud Colors:
Phi-Pi Cloud:
Blue - when Pi above Phi (bullish)
Gold - when Phi above Pi (bearish)
Pi-e Cloud:
Green - when e above Pi (bullish)
Blue - when Pi above e (bearish)
2 layers for volumetric effect
Pulsing Ribbon Bar
Enable Pulsing Indicator Bar - pulsing strip at bottom/top of chart
Parameters:
Ribbon Position: Top / Bottom (recommended)
Pulse Speed: Slow / Medium (recommended) / Fast
Symbols and colors:
Green filled square - STRONG BULLISH
Pink filled square - STRONG BEARISH
Blue hollow square - Bullish (regular)
Red hollow square - Bearish (regular)
Purple rectangle - Neutral
Effect: Pulsation with sinusoid for living market feel
Signal Bar Highlights
Enable Signal Bar Highlights - highlights bars with signals
Parameters:
Highlight Transparency (88-96): Highlight transparency
Highlight Style:
Light Fill (recommended) - bar background fill
Thin Line - bar outline only
Highlights:
Golden Cross - green
Death Cross - pink
STRONG BUY - green
STRONG SELL - pink
Show Greek Labels
Shows Greek alphabet letters on last bar:
Phi - Phi EMA (gold)
Pi - Pi EMA (blue)
e - Euler EMA (green)
Delta - Delta EMA (purple)
Sigma - Sigma EMA (pink)
When to use: For education or presentations
Show Old Background
Old background style (not recommended):
Green background - STRONG BULLISH
Pink background - STRONG BEARISH
Blue background - Bullish
Red background - Bearish
Not recommended - use new Gradient Clouds and Pulsing Bar
Info Table
Show Info Table - table with indicator information
Parameters:
Position: Top Left / Top Right (recommended) / Bottom Left / Bottom Right
Size: Tiny / Small (recommended) / Normal / Large
Table contents:
EMA list - periods and current values of all active EMAs
Effects - active visual effects
TREND - current trend state:
STRONG UP - strong bullish
STRONG DOWN - strong bearish
Bullish - regular bullish
Bearish - regular bearish
Neutral - neutral
Momentum % - percentage deviation of price from Fast EMA
Setup - current Fast/Slow/Mid configuration
Trading Signals
Show Golden/Death Cross
Golden Cross - Fast EMA crosses Slow EMA from below (bullish signal) Death Cross - Fast EMA crosses Slow EMA from above (bearish signal)
Symbols:
Yellow dot "GC" below - Golden Cross
Dark red dot "DC" above - Death Cross
Show STRONG Signals
STRONG BUY and STRONG SELL - the most powerful indicator signals
Conditions for STRONG BULLISH:
EMA Alignment: Fast > Mid > Slow (all EMAs aligned)
Trend: Fast > Slow (clear uptrend)
Distance: EMAs separated by minimum 0.15%
Price Position: Price above Fast EMA
Fast Slope: Fast EMA rising
Slow Slope: Slow EMA rising
Mid Trending: Mid EMA also rising (if enabled)
Conditions for STRONG BEARISH:
Same but in reverse
Visual display:
Green label "STRONG BUY" below bar
Pink label "STRONG SELL" above bar
Difference from Golden/Death Cross:
Golden/Death Cross = crossing moment (1 bar)
STRONG signal = sustained trend (lasts several bars)
IMPORTANT: After fixes, STRONG signals now:
Work on all timeframes (M1 to MN)
Don't break on small retracements
Work with any Fast/Mid/Slow combination
Automatically adapt thanks to EMA sorting
Show Stop Loss/Take Profit
Automatic SL/TP level calculation on STRONG signal
Parameters:
Stop Loss (ATR) (0.5-5.0): ATR multiplier for stop loss
1.5 (recommended) - standard
1.0 - tight stop
2.0-3.0 - wide stop
Take Profit R:R (1.0-5.0): Risk/reward ratio
2.0 (recommended) - standard (risk 1.5 ATR, profit 3.0 ATR)
1.5 - conservative
3.0-5.0 - aggressive
Formulas:
LONG:
Stop Loss = Entry - (ATR × Stop Loss ATR)
Take Profit = Entry + (ATR × Stop Loss ATR × Take Profit R:R)
SHORT:
Stop Loss = Entry + (ATR × Stop Loss ATR)
Take Profit = Entry - (ATR × Stop Loss ATR × Take Profit R:R)
Visualization:
Red X - Stop Loss
Green X - Take Profit
Levels remain active while STRONG signal persists
Trading Signals
Signal Types
1. Golden Cross
Description: Fast EMA crosses Slow EMA from below
Signal: Beginning of bullish trend
How to trade:
ENTRY: On bar close with Golden Cross
STOP: Below local low or below Slow EMA
TARGET: Next resistance level or 2:1 R:R
Strengths:
Simple and clear
Works well on trending markets
Clear entry point
Weaknesses:
Lags (signal after movement starts)
Many false signals in ranging markets
May be late on fast moves
Optimal timeframes: H1, H4, D1
2. Death Cross
Description: Fast EMA crosses Slow EMA from above
Signal: Beginning of bearish trend
How to trade:
ENTRY: On bar close with Death Cross
STOP: Above local high or above Slow EMA
TARGET: Next support level or 2:1 R:R
Application: Mirror of Golden Cross
3. STRONG BUY
Description: All EMAs aligned + trend + all EMAs rising
Signal: Powerful bullish trend
How to trade:
ENTRY: On bar close with STRONG BUY or on pullback to Fast EMA
STOP: Below Fast EMA or automatic SL (if enabled)
TARGET: Automatic TP (if enabled) or by levels
TRAILING: Follow Fast EMA
Entry strategies:
Aggressive: Enter immediately on signal
Conservative: Wait for pullback to Fast EMA, then enter on bounce
Pyramiding: Add positions on pullbacks to Mid EMA
Position management:
Hold while STRONG signal active
Exit on STRONG SELL or Death Cross appearance
Move stop behind Fast EMA
Strengths:
Most reliable indicator signal
Doesn't break on pullbacks
Catches large moves
Works on all timeframes
Weaknesses:
Appears less frequently than other signals
Requires confirmation (multiple conditions)
Optimal timeframes: All (M5 - D1)
4. STRONG SELL
Description: All EMAs aligned down + downtrend + all EMAs falling
Signal: Powerful bearish trend
How to trade: Mirror of STRONG BUY
Visual Signals
Pulsing Ribbon Bar
Quick market assessment at a glance:
Symbol	Color	State
Filled square	Green	STRONG BULLISH
Filled square	Pink	STRONG BEARISH
Hollow square	Blue	Bullish
Hollow square	Red	Bearish
Rectangle	Purple	Neutral
Pulsation: Sinusoidal, creates living effect
Signal Bar Highlights
Bars with signals are highlighted:
Green highlight: STRONG BUY or Golden Cross
Pink highlight: STRONG SELL or Death Cross
Gradient Clouds
Colored space between EMAs shows trend strength:
Wide clouds - strong trend
Narrow clouds - weak trend or consolidation
Color change - trend change
Info Table
Quick reference in corner:
TREND: Current state (STRONG UP, Bullish, Neutral, Bearish, STRONG DOWN)
Momentum %: Movement strength
Effects: Active visual effects
Setup: Fast/Slow/Mid configuration
Usage Strategies
Strategy 1: "Golden Trailing"
Idea: Follow STRONG signals using Fast EMA as trailing stop
Settings:
Fast: Phi Golden (Phi³)
Mid: Pi Circular (2Pi)
Slow: e Natural (e²)
Base Multiplier: 10
Timeframe: H1, H4
Entry rules:
Wait for STRONG BUY
Enter on bar close or on pullback to Fast EMA
Stop below Fast EMA
Management:
Hold position while STRONG signal active
Move stop behind Fast EMA daily
Exit on STRONG SELL or Death Cross
Take Profit:
Partially close at +2R
Trail remainder until exit signal
For whom: Swing traders, trend followers
Pros:
Catches large moves
Simple rules
Emotionally comfortable
Cons:
Requires patience
Possible extended drawdowns on pullbacks
Strategy 2: "Scalping Bounces"
Idea: Scalp bounces from Fast EMA during STRONG trend
Settings:
Fast: Delta Adaptive (Base 15, Sensitivity 2.0)
Mid: Phi Golden (Phi²)
Slow: Pi Circular (2Pi)
Base Multiplier: 5
Timeframe: M5, M15
Entry rules:
STRONG signal must be active
Wait for price pullback to Fast EMA
Enter on bounce (candle closes above/below Fast EMA)
Stop behind local extreme (15-20 pips)
Take Profit:
+1.5R or to Mid EMA
Or to next level
For whom: Active day traders
Pros:
Many signals
Clear entry point
Quick profits
Cons:
Requires constant monitoring
Not all bounces work
Requires discipline for frequent trading
Strategy 3: "Triple Filter"
Idea: Enter only when all 3 EMAs and price perfectly aligned
Settings:
Fast: Phi Golden (Phi³)
Mid: e Natural (e²)
Slow: Pi Circular (3Pi)
Base Multiplier: 15
Timeframe: H4, D1
Entry rules (LONG):
STRONG BUY active
Price above all three EMAs
Fast > Mid > Slow (all aligned)
All EMAs rising (slope up)
Gradient Clouds wide and bright
Entry:
On bar close meeting all conditions
Or on next pullback to Fast EMA
Stop:
Below Mid EMA or -1.5 ATR
Take Profit:
First target: +3R
Second target: next major level
Trailing: Mid EMA
For whom: Conservative swing traders, investors
Pros:
Very reliable signals
Minimum false entries
Large profit potential
Cons:
Rare signals (2-5 per month)
Requires patience
Strategy 4: "Adaptive Scalper"
Idea: Use only Delta Adaptive EMA for quick volatility reaction
Settings:
Fast: Delta Adaptive (Base 10, Sensitivity 3.0)
Mid: None
Slow: Delta Adaptive (Base 30, Sensitivity 2.0)
Base Multiplier: 3
Timeframe: M1, M5
Feature: Two different Delta EMAs with different settings
Entry rules:
Golden Cross between two Delta EMAs
Both Delta EMAs must be rising/falling
Enter on next bar
Stop:
10-15 pips or below Slow Delta EMA
Take Profit:
+1R to +2R
Or Death Cross
For whom: Scalpers on cryptocurrencies and forex
Pros:
Instant volatility adaptation
Many signals on volatile markets
Quick results
Cons:
Much noise on calm markets
Requires fast execution
High commissions may eat profits
Strategy 5: "Cyclical Trader"
Idea: Use Pi and Lambda for trading cyclical markets
Settings:
Fast: Pi Circular (1Pi)
Mid: Lambda Wave (Base 30, Amplitude 0.5, Frequency 50)
Slow: Pi Circular (3Pi)
Base Multiplier: 10
Timeframe: H1, H4
Entry rules:
STRONG signal active
Lambda Wave EMA synchronized with trend
Enter on bounce from Lambda Wave
For whom: Traders of cyclical assets (some altcoins, commodities)
Pros:
Catches cyclical movements
Lambda Wave provides additional entry points
Cons:
More complex to configure
Not for all markets
Lambda Wave may give false signals
Strategy 6: "Multi-Timeframe Confirmation"
Idea: Use multiple timeframes for confirmation
Scheme:
Higher TF (D1): Determine trend direction (STRONG signal)
Middle TF (H4): Wait for STRONG signal in same direction
Lower TF (M15): Look for entry point (Golden Cross or bounce from Fast EMA)
Settings for all TFs:
Fast: Phi Golden (Phi³)
Mid: e Natural (e²)
Slow: Pi Circular (2Pi)
Base Multiplier: 10
Rules:
All 3 TFs must show one trend
Entry on lower TF
Stop by lower TF
Target by higher TF
For whom: Serious traders and investors
Pros:
Maximum reliability
Large profit targets
Minimum false signals
Cons:
Rare setups
Requires analysis of multiple charts
Experience needed
Practical Tips
DOs
Use STRONG signals as primary - they're most reliable
Let signals develop - don't exit on first pullback
Use trailing stop - follow Fast EMA
Combine with levels - S/R, Fibonacci, volumes
Test on demo before real
Adjust Base Multiplier for your timeframe
Enable visual effects - they help see the picture
Use Info Table - quick situation assessment
Watch Pulsing Bar - instant state indicator
Trust auto-sorting of Fast/Mid/Slow
DON'Ts
Don't trade against STRONG signal - trend is your friend
Don't ignore Mid EMA - it adds reliability
Don't use too small Base Multiplier on higher TFs
Don't enter on Golden Cross in range - check for trend
Don't change settings during open position
Don't forget risk management - 1-2% per trade
Don't trade all signals in row - choose best ones
Don't use indicator in isolation - combine with Price Action
Don't set too tight stops - let trade breathe
Don't over-optimize - simplicity = reliability
Optimal Settings by Asset
US Stocks (SPY, AAPL, TSLA)
Recommendation:
Fast: Phi Golden (Phi³)
Mid: e Natural (e²)
Slow: Pi Circular (2Pi)
Base: 10-15
Timeframe: H4, D1
Features:
Use on daily for swing
STRONG signals very reliable
Works well on trending stocks
Forex (EUR/USD, GBP/USD)
Recommendation:
Fast: Delta Adaptive (Base 15, Sens 2.0)
Mid: Phi Golden (Phi²)
Slow: Pi Circular (2Pi)
Base: 8-12
Timeframe: M15, H1, H4
Features:
Delta Adaptive works excellently on news
Many signals on M15-H1
Consider spreads
Cryptocurrencies (BTC, ETH, altcoins)
Recommendation:
Fast: Delta Adaptive (Base 10, Sens 3.0)
Mid: Pi Circular (2Pi)
Slow: e Natural (e²)
Base: 5-10
Timeframe: M5, M15, H1
Features:
High volatility - adaptation needed
STRONG signals can last days
Be careful with scalping on M1-M5
Commodities (Gold, Oil)
Recommendation:
Fast: Pi Circular (1Pi)
Mid: Phi Golden (Phi³)
Slow: Pi Circular (3Pi)
Base: 12-18
Timeframe: H4, D1
Features:
Pi works excellently on cyclical commodities
Gold responds especially well to Phi
Oil volatile - use wide stops
Indices (S&P500, Nasdaq, DAX)
Recommendation:
Fast: Phi Golden (Phi³)
Mid: e Natural (e²)
Slow: Pi Circular (2Pi)
Base: 15-20
Timeframe: H4, D1, W1
Features:
Very trending instruments
STRONG signals last weeks
Good for position trading
Alerts
The indicator supports 6 alert types:
1. Golden Cross
Message: "Hellenic Matrix: GOLDEN CROSS - Fast EMA crossed above Slow EMA - Bullish trend starting!"
When: Fast EMA crosses Slow EMA from below
2. Death Cross
Message: "Hellenic Matrix: DEATH CROSS - Fast EMA crossed below Slow EMA - Bearish trend starting!"
When: Fast EMA crosses Slow EMA from above
3. STRONG BULLISH
Message: "Hellenic Matrix: STRONG BULLISH SIGNAL - All EMAs aligned for powerful uptrend!"
When: All conditions for STRONG BUY met (first bar)
4. STRONG BEARISH
Message: "Hellenic Matrix: STRONG BEARISH SIGNAL - All EMAs aligned for powerful downtrend!"
When: All conditions for STRONG SELL met (first bar)
5. Bullish Ribbon
Message: "Hellenic Matrix: BULLISH RIBBON - EMAs aligned for uptrend"
When: EMAs aligned bullish + price above Fast EMA (less strict condition)
6. Bearish Ribbon
Message: "Hellenic Matrix: BEARISH RIBBON - EMAs aligned for downtrend"
When: EMAs aligned bearish + price below Fast EMA (less strict condition)
How to Set Up Alerts:
Open indicator on chart
Click on three dots next to indicator name
Select "Create Alert"
In "Condition" field select needed alert:
Golden Cross
Death Cross
STRONG BULLISH
STRONG BEARISH
Bullish Ribbon
Bearish Ribbon
Configure notification method:
Pop-up in browser
Email
SMS (in Premium accounts)
Push notifications in mobile app
Webhook (for automation)
Select frequency:
Once Per Bar Close (recommended) - once on bar close
Once Per Bar - during bar formation
Only Once - only first time
Click "Create"
Tip: Create separate alerts for different timeframes and instruments
FAQ
1. Why don't STRONG signals appear?
Possible reasons:
Incorrect Fast/Mid/Slow order
Solution: Indicator automatically sorts EMAs by periods, but ensure selected EMAs have different periods
Base Multiplier too large
Solution: Reduce Base to 5-10 on lower timeframes
Market in range
Solution: STRONG signals appear only in trends - this is normal
Too strict EMA settings
Solution: Try classic combination: Phi³ / Pi×2 / e² with Base=10
Mid EMA too close to Fast or Slow
Solution: Select Mid EMA with period between Fast and Slow
2. How often should STRONG signals appear?
Normal frequency:
M1-M5: 5-15 signals per day (very active markets)
M15-H1: 2-8 signals per day
H4: 3-10 signals per week
D1: 2-5 signals per month
W1: 2-6 signals per year
If too many signals - market very volatile or Base too small
If too few signals - market in range or Base too large
4. What are the best settings for beginners?
Universal "out of the box" settings:
Matrix Core:
Base Multiplier: 10
Source: close
Phi Golden: Enabled, Power = 3
Pi Circular: Enabled, Multiple = 2
e Natural: Enabled, Power = 2
Delta Adaptive: Enabled, Base = 20, Sensitivity = 2.0
Manual Selection:
Fast: Phi Golden
Mid: e Natural
Slow: Pi Circular
Visualization:
Gradient Clouds: ON
Neon Glow: ON (Medium)
Pulsing Bar: ON (Medium)
Signal Highlights: ON (Light Fill)
Table: ON (Top Right, Small)
Signals:
Golden/Death Cross: ON
STRONG Signals: ON
Stop Loss: OFF (while learning)
Timeframe for learning: H1 or H4
5. Can I use only one EMA?
No, minimum 2 EMAs (Fast and Slow) for signal generation.
Mid EMA is optional:
With Mid EMA = more reliable but rarer signals
Without Mid EMA = more signals but less strict filtering
Recommendation: Start with 3 EMAs (Fast/Mid/Slow), then experiment
6. Does the indicator work on cryptocurrencies?
Yes, works excellently! Especially good on:
Bitcoin (BTC)
Ethereum (ETH)
Major altcoins (SOL, BNB, XRP)
Recommended settings for crypto:
Fast: Delta Adaptive (Base 10-15, Sensitivity 2.5-3.0)
Mid: Pi Circular (2Pi)
Slow: e Natural (e²)
Base: 5-10
Timeframe: M15, H1, H4
Crypto market features:
High volatility → use Delta Adaptive
24/7 trading → set alerts
Sharp movements → wide stops
7. Can I trade only with this indicator?
Technically yes, but NOT recommended.
Best approach - combine with:
Price Action - support/resistance levels, candle patterns
Volume - movement strength confirmation
Fibonacci - retracement and extension levels
RSI/MACD - divergences and overbought/oversold
Fundamental analysis - news, company reports
Hellenic Matrix:
Excellently determines trend and its strength
Provides clear entry/exit points
Doesn't consider fundamentals
Doesn't see major levels
8. Why do Gradient Clouds change color?
Color depends on EMA order:
Phi-Pi Cloud:
Blue - Pi EMA above Phi EMA (bullish alignment)
Gold - Phi EMA above Pi EMA (bearish alignment)
Pi-e Cloud:
Green - e EMA above Pi EMA (bullish alignment)
Blue - Pi EMA above e EMA (bearish alignment)
Color change = EMA order change = possible trend change
9. What is Momentum % in the table?
Momentum % = percentage deviation of price from Fast EMA
Formula:
Momentum = ((Close - Fast EMA) / Fast EMA) × 100
Interpretation:
+0.5% to +2% - normal bullish momentum
+2% to +5% - strong bullish momentum
+5% and above - overheating (correction possible)
-0.5% to -2% - normal bearish momentum
-2% to -5% - strong bearish momentum
-5% and below - oversold (bounce possible)
Usage:
Monitor momentum during STRONG signals
Large momentum = don't enter (wait for pullback)
Small momentum = good entry point
10. How to configure for scalping?
Settings for scalping (M1-M5):
Base Multiplier: 3-5
Source: close or hlc3 (smoother)
Fast: Delta Adaptive (Base 8-12, Sensitivity 3.0)
Mid: None (for more signals)
Slow: Phi Golden (Phi²) or Pi Circular (1Pi)
Visualization:
- Gradient Clouds: ON (helps see strength)
- Neon Glow: OFF (doesn't clutter chart)
- Pulsing Bar: ON (quick assessment)
- Signal Highlights: ON
Signals:
- Golden/Death Cross: ON
- STRONG Signals: ON
- Stop Loss: ON (1.0-1.5 ATR, R:R 1.5-2.0)
Scalping rules:
Trade only STRONG signals
Enter on bounce from Fast EMA
Tight stops (10-20 pips)
Quick take profit (+1R to +2R)
Don't hold through news
11. How to configure for long-term investing?
Settings for investing (D1-W1):
Base Multiplier: 20-30
Source: close
Fast: Phi Golden (Phi³ or Phi⁴)
Mid: e Natural (e²)
Slow: Pi Circular (3Pi or 4Pi)
Visualization:
- Gradient Clouds: ON
- Neon Glow: ON (Medium)
- Everything else - to taste
Signals:
- Golden/Death Cross: ON
- STRONG Signals: ON
- Stop Loss: OFF (use percentage stop)
Investing rules:
Enter only on STRONG signals
Hold while STRONG active (weeks/months)
Stop below Slow EMA or -10%
Take profit: by company targets or +50-100%
Ignore short-term pullbacks
12. What if indicator slows down chart?
Indicator is optimized, but if it slows:
Disable unnecessary visual effects:
Neon Glow: OFF (saves 8 plots)
Gradient Clouds: ON but low quality
Lambda Wave EMA: OFF (if not using)
Reduce number of active EMAs:
Sigma Composite: OFF
Lambda Wave: OFF
Leave only Phi, Pi, e, Delta
Simplify settings:
Pulsing Bar: OFF
Greek Labels: OFF
Info Table: smaller size
13. Can I use on different timeframes simultaneously?
Yes! Multi-timeframe analysis is very powerful:
Classic scheme:
Higher TF (D1, W1) - determine global trend
Wait for STRONG signal
This is our trading direction
Middle TF (H4, H1) - look for confirmation
STRONG signal in same direction
Precise entry zone
Lower TF (M15, M5) - entry point
Golden Cross or bounce from Fast EMA
Precise stop loss
Example:
W1: STRONG BUY active (global uptrend)
H4: STRONG BUY appeared (confirmation)
M15: Wait for Golden Cross or bounce from Fast EMA → ENTRY
Advantages:
Maximum reliability
Clear timeframe hierarchy
Large targets
14. How does indicator work on news?
Delta Adaptive EMA adapts excellently to news:
Before news:
Low volatility → Delta EMA becomes fast → pulls to price
During news:
Sharp volatility spike → Delta EMA slows → filters noise
After news:
Volatility normalizes → Delta EMA returns to normal
Recommendations:
Don't trade at news release moment (spreads widen)
Wait for STRONG signal after news (2-5 bars)
Use Delta Adaptive as Fast EMA for quick reaction
Widen stops by 50-100% during important news
Advanced Techniques
Technique 1: "Divergences with EMA"
Idea: Look for discrepancies between price and Fast EMA
Bullish divergence:
Price makes lower low
Fast EMA makes higher low
= Possible reversal up
Bearish divergence:
Price makes higher high
Fast EMA makes lower high
= Possible reversal down
How to trade:
Find divergence
Wait for STRONG signal in divergence direction
Enter on confirmation
Technique 2: "EMA Tunnel"
Idea: Use space between Fast and Slow EMA as "tunnel"
Rules:
Wide tunnel - strong trend, hold position
Narrow tunnel - weak trend or consolidation, caution
Tunnel narrowing - trend weakening, prepare to exit
Tunnel widening - trend strengthening, can add
Visually: Gradient Clouds show this automatically!
Trading:
Enter on STRONG signal (tunnel starts widening)
Hold while tunnel wide
Exit when tunnel starts narrowing
Technique 3: "Wave Analysis with Lambda"
Idea: Lambda Wave EMA creates sinusoid matching market cycles
Setup:
Lambda Base Period: 30
Lambda Wave Amplitude: 0.5
Lambda Wave Frequency: 50 (adjusted to asset cycle)
How to find correct Frequency:
Look at historical cycles (distance between local highs)
Average distance = your Frequency
Example: if highs every 40-60 bars, set Frequency = 50
Trading:
Enter when Lambda Wave at bottom of sinusoid (growth potential)
Exit when Lambda Wave at top (fall potential)
Combine with STRONG signals
Technique 4: "Cluster Analysis"
Idea: When all EMAs gather in narrow cluster = powerful breakout soon
Cluster signs:
All EMAs (Phi, Pi, e, Delta) within 0.5-1% of each other
Gradient Clouds almost invisible
Price jumping around all EMAs
Trading:
Identify cluster (all EMAs close)
Determine breakout direction (where more volume, higher TFs direction)
Wait for breakout and STRONG signal
Enter on confirmation
Target = cluster size × 3-5
This is very powerful technique for big moves!
Technique 5: "Sigma as Dynamic Level"
Idea: Sigma Composite EMA = average of all EMAs = magnetic level
Usage:
Enable Sigma Composite (Weighted Average)
Sigma works as dynamic support/resistance
Price often returns to Sigma before trend continuation
Trading:
In trend: Enter on bounces from Sigma
In range: Fade moves from Sigma (trade return to Sigma)
On breakout: Sigma becomes support/resistance
Risk Management
Basic Rules
1. Position Size
Conservative: 1% of capital per trade
Moderate: 2% of capital per trade (recommended)
Aggressive: 3-5% (only for experienced)
Calculation formula:
Lot Size = (Capital × Risk%) / (Stop in pips × Pip value)
2. Risk/Reward Ratio
Minimum: 1:1.5
Standard: 1:2 (recommended)
Optimal: 1:3
Aggressive: 1:5+
3. Maximum Drawdown
Daily: -3% to -5%
Weekly: -7% to -10%
Monthly: -15% to -20%
Upon reaching limit → STOP trading until end of period
Position Management Strategies
1. Fixed Stop
Method:
Stop below/above Fast EMA or local extreme
DON'T move stop against position
Can move to breakeven
For whom: Beginners, conservative traders
2. Trailing by Fast EMA
Method:
Each day (or bar) move stop to Fast EMA level
Position closes when price breaks Fast EMA
Advantages:
Stay in trend as long as possible
Automatically exit on reversal
For whom: Trend followers, swing traders
3. Partial Exit
Method:
50% of position close at +2R
50% hold with trailing by Mid EMA or Slow EMA
Advantages:
Lock profit
Leave position for big move
Psychologically comfortable
For whom: Universal method (recommended)
4. Pyramiding
Method:
First entry on STRONG signal (50% of planned position)
Add 25% on pullback to Fast EMA
Add another 25% on pullback to Mid EMA
Overall stop below Slow EMA
Advantages:
Average entry price
Reduce risk
Increase profit in strong trends
Caution:
Works only in trends
In range leads to losses
For whom: Experienced traders
Trading Psychology
Correct Mindset
1. Indicator is a tool, not holy grail
Indicator shows probability, not guarantee
There will be losing trades - this is normal
Important is series statistics, not one trade
2. Trust the system
If STRONG signal appeared - enter
Don't search for "perfect" moment
Follow trading plan
3. Patience
STRONG signals don't appear every day
Better miss signal than enter against trend
Quality over quantity
4. Discipline
Always set stop loss
Don't move stop against position
Don't increase risk after losses
Beginner Mistakes
1. "I know better than indicator"
Indicator says STRONG BUY, but you think "too high, will wait for pullback"
Result: miss profitable move
Solution: Trust signals or don't use indicator
2. "Will reverse now for sure"
Trading against STRONG trend
Result: stops, stops, stops
Solution: Trend is your friend, trade with trend
3. "Will hold a bit more"
Don't exit when STRONG signal disappears
Greed eats profit
Solution: If signal gone - exit!
4. "I'll recover"
After losses double risk
Result: huge losses
Solution: Fixed % risk ALWAYS
5. "I don't like this signal"
Skip signals because of "feeling"
Result: inconsistency, no statistics
Solution: Trade ALL signals or clearly define filters
Trading Journal
What to Record
For each trade:
1. Entry/exit date and time
2. Instrument and timeframe
3. Signal type
Golden Cross
STRONG BUY
STRONG SELL
Death Cross
4. Indicator settings
Fast/Mid/Slow EMA
Base Multiplier
Other parameters
5. Chart screenshot
Entry moment
Exit moment
6. Trade parameters
Position size
Stop loss
Take Profit
R:R
7. Result
Profit/Loss in $
Profit/Loss in %
Profit/Loss in R
8. Notes
What was right
What was wrong
Emotions during trade
Lessons
Journal Analysis
Analyze weekly:
1. Win Rate
Win Rate = (Profitable trades / All trades) × 100%
Good: 50-60%
Excellent: 60-70%
Exceptional: 70%+
2. Average R
Average R = Sum of all R / Number of trades
Good: +0.5R
Excellent: +1.0R
Exceptional: +1.5R+
3. Profit Factor
Profit Factor = Total profit / Total losses
Good: 1.5+
Excellent: 2.0+
Exceptional: 3.0+
4. Maximum Drawdown
Track consecutive losses
If more than 5 in row - stop, check system
5. Best/Worst Trades
What was common in best trades? (do more)
What was common in worst trades? (avoid)
Pre-Trade Checklist
Technical Analysis
 STRONG signal active (BUY or SELL)
 All EMAs properly aligned (Fast > Mid > Slow or reverse)
 Price on correct side of Fast EMA
 Gradient Clouds confirm trend
 Pulsing Bar shows STRONG state
 Momentum % in normal range (not overheated)
 No close strong levels against direction
 Higher timeframe doesn't contradict
Risk Management
 Position size calculated (1-2% risk)
 Stop loss set
 Take profit calculated (minimum 1:2)
 R:R satisfactory
 Daily/weekly risk limit not exceeded
 No other open correlated positions
Fundamental Analysis
 No important news in coming hours
 Market session appropriate (liquidity)
 No contradicting fundamentals
 Understand why asset is moving
Psychology
 Calm and thinking clearly
 No emotions from previous trades
 Ready to accept loss at stop
 Following trading plan
 Not revenging market for past losses
If at least one point is NO - think twice before entering!
Learning Roadmap
Week 1: Familiarization
Goals:
Install and configure indicator
Study all EMA types
Understand visualization
Tasks:
Add indicator to chart
Test all Fast/Mid/Slow settings
Play with Base Multiplier on different timeframes
Observe Gradient Clouds and Pulsing Bar
Study Info Table
Result: Comfort with indicator interface
Week 2: Signals
Goals:
Learn to recognize all signal types
Understand difference between Golden Cross and STRONG
Tasks:
Find 10 Golden Cross examples in history
Find 10 STRONG BUY examples in history
Compare their results (which worked better)
Set up alerts
Get 5 real alerts
Result: Understanding signals
Week 3: Demo Trading
Goals:
Start trading signals on demo account
Gather statistics
Tasks:
Open demo account
Trade ONLY STRONG signals
Keep journal (minimum 20 trades)
Don't change indicator settings
Strictly follow stop losses
Result: 20+ documented trades
Week 4: Analysis
Goals:
Analyze demo trading results
Optimize approach
Tasks:
Calculate win rate and average R
Find patterns in profitable trades
Find patterns in losing trades
Adjust approach (not indicator!)
Write trading plan
Result: Trading plan on 1 page
Month 2: Improvement
Goals:
Deepen understanding
Add additional techniques
Tasks:
Study multi-timeframe analysis
Test combinations with Price Action
Try advanced techniques (divergences, tunnels)
Continue demo trading (minimum 50 trades)
Achieve stable profitability on demo
Result: Win rate 55%+ and Profit Factor 1.5+
Month 3: Real Trading
Goals:
Transition to real account
Maintain discipline
Tasks:
Open small real account
Trade minimum lots
Strictly follow trading plan
DON'T increase risk
Focus on process, not profit
Result: Psychological comfort on real
Month 4+: Scaling
Goals:
Increase account
Become consistently profitable
Tasks:
With 60%+ win rate can increase risk to 2%
Upon doubling account can add capital
Continue keeping journal
Periodically review and improve strategy
Share experience with community
Result: Stable profitability month after month
Additional Resources
Recommended Reading
Technical Analysis:
"Technical Analysis of Financial Markets" - John Murphy
"Trading in the Zone" - Mark Douglas (psychology)
"Market Wizards" - Jack Schwager (trader interviews)
EMA and Moving Averages:
"Moving Averages 101" - Steve Burns
Articles on Investopedia about EMA
Risk Management:
"The Mathematics of Money Management" - Ralph Vince
"Trade Your Way to Financial Freedom" - Van K. Tharp
Trading Journals:
Edgewonk (paid, very powerful)
Tradervue (free version + premium)
Excel/Google Sheets (free)
Screeners:
TradingView Stock Screener
Finviz (stocks)
CoinMarketCap (crypto)
Conclusion
Hellenic EMA Matrix is a powerful tool based on universal mathematical constants of nature. The indicator combines:
Mathematical elegance - Phi, Pi, e instead of arbitrary numbers
Premium visualization - Neon Glow, Gradient Clouds, Pulsing Bar
Reliable signals - STRONG BUY/SELL work on all timeframes
Flexibility - 6 EMA types, adaptation to any trading style
Automation - auto-sorting EMAs, SL/TP calculation, alerts
Key Success Principles:
Simplicity - start with basic settings (Phi/Pi/e, Base=10)
Discipline - follow STRONG signals strictly
Patience - wait for quality setups
Risk Management - 1-2% per trade, ALWAYS
Journal - document every trade
Learning - constantly improve skills
Remember:
Indicator shows probability, not guarantee
Important is series statistics, not one trade
Psychology more important than technique
Quality more important than quantity
Process more important than result
Acknowledgments
Thank you for using Hellenic EMA Matrix - Alpha Omega Premium!
The indicator was created with love for mathematics, markets, and beautiful visualization.
Wishing you profitable trading!
Guide Version: 1.0
Date: 2025
Compatibility: Pine Script v6, TradingView
"In the simplicity of mathematical constants lies the complexity of market movements"
Tight Entry Trend Engine Strategy═══════════════════════════════════════
TIGHT ENTRY TREND ENGINE
═══════════════════════════════════════
A breakout-based trend-following system designed to capture explosive 
moves by entering at precise resistance/support breakouts with minimal 
entry risk and massive profit potential.
⚠️ LOW WIN RATE, HIGH REWARD SYSTEM ⚠️
This is NOT a high win-rate strategy. Expect 25-35% winners, but 
when it hits, winners are typically 10X+ larger than losers.
═══════════════════════════════════════
🎯 WHAT THIS SYSTEM DOES
═══════════════════════════════════════
The Tight Entry Trend Engine identifies powerful breakout opportunities 
by detecting when price breaks through established trendlines with 
confirmation from higher timeframe trends:
1. DYNAMIC TRENDLINE DETECTION (3 BANKS)
   • Automatically draws support and resistance trendlines
   • 3 separate "banks" capture short-term, medium-term, and long-term levels
   • Each bank has configurable parameters (required pivot touch count, 
     angle limits, lengths)
2. BREAKOUT ENTRY TIMING
   • Enters LONG when price breaks ABOVE resistance trendlines
   • Enters SHORT when price breaks BELOW support trendlines
   • Entry Alert occurs at the exact moment of breakout = "tight entry"
   • Stop-loss placed just below/above the broken trendline (configurable)
3. HIGHER TIMEFRAME TREND FILTER
   • Uses Hull Moving Average (HMA) on higher timeframe for trend following
   • Auto-adjusts HTF based on your chart timeframe
   • Optional filters prevent entries against major trend
   • Optional "overextension" filter avoids buying parabolic moves
4. VOLATILITY-ADAPTIVE RISK MANAGEMENT
   • Stop-loss calculated using Average True Range (ATR)
   • Tighter stops = better R:R
   • Profit targets adjust dynamically with volatility
   • Breakeven stop moves automatically when in profit
   • Extended profit targets when far from HTF trend
═══════════════════════════════════════
📊 HOW IT WORKS (METHODOLOGY)
═══════════════════════════════════════
STEP 1: TRENDLINE FORMATION
The system continuously scans for pivot highs and pivot lows to 
construct trendlines. You control:
BANK 1 (Short-Term):
- Pivot Length: How many bars to look back for swing points
- Min Touches: How many pivots needed to form a line (default: 3)
- Max Length: How far back lines can reach (default: 180 bars)
- Angle Limits: Maximum steepness allowed for valid trendlines
- Tolerance: How close pivots must align to form horizontal lines
BANK 2 (Medium-Term):
- Slightly longer pivot periods for more significant levels
- Captures medium-term trend structure
- Default Max Length: 200 bars
BANK 3 (Long-Term):
- Focuses on major support/resistance zones
- Often uses horizontal levels (angled lines disabled by default)
- Default Max Length: 300 bars
The system draws RESISTANCE lines (red) above price and SUPPORT 
lines (green) below price. These adapt in real-time as new pivots form.
STEP 2: BREAKOUT DETECTION
LONG SIGNALS:
- Price closes above a resistance trendline
- Higher timeframe trend is up (optional filter)
- Price not overextended from HTF trend (optional filter)
- No position currently open
SHORT SIGNALS:
- Price closes below a support trendline
- Higher timeframe trend is down (optional filter)
- Price not overextended from HTF trend (optional filter)
- No position currently open
The "tight" aspect: Because you're entering right at the trendline 
break, your stop-loss can be placed very close (just below the 
broken resistance for longs), creating exceptional risk/reward ratios.
STEP 3: POSITION SIZING
Choose between:
- Fixed $ Risk Per Trade: Risk same dollar amount every trade
- % Risk Per Trade: Risk percentage of current equity
Position size automatically calculated based on:
- Your risk amount
- Distance to stop-loss (ATR-based)
- Works with stocks, futures, crypto (auto-adjusts for contract multipliers)
STEP 4: EXIT MANAGEMENT
Multiple exit methods working together:
- PROFIT TARGET: Exits when profit reaches 100x your risk
- EXTENDED PROFIT: Earlier exit (80R) when very far from HTF trend
- STOP LOSS: Fixed ATR-based stop below entry
- HTF TREND EXIT: Exits when price crosses below HTF trend with profit
- BREAKEVEN PULLBACK: Exits if profit drops below 0.6R after reaching breakeven
- PARTIAL PROFITS: Optional - take partial profits at specified R-multiple
═══════════════════════════════════════
🔧 KEY COMPONENTS EXPLAINED
═══════════════════════════════════════
HULL MOVING AVERAGE (HMA)
A smoothed moving average that reduces lag compared to traditional 
MAs. The system uses HMA on a higher timeframe to determine the 
dominant trend direction. You can choose:
- Auto HTF: System picks appropriate HTF based on your chart timeframe
- Manual HTF: You specify the higher timeframe
AVERAGE TRUE RANGE (ATR)
Measures current market volatility. Used for:
- Stop-loss distance (tighter when volatility low)
- Profit targets (larger when volatility high)
- Position sizing (smaller positions in volatile conditions)
- Breakeven trigger distance
TRENDLINE ANGLE FILTERING
Each trendline bank has angle limits to ensure quality:
- Resistance lines: Max downward/upward slope allowed
- Support lines: Max downward/upward slope allowed
- Angles automatically adjust based on current volatility
- Prevents overly steep/unreliable trendlines
SENSITIVITY CONTROL
One master slider adjusts multiple parameters:
- Trendline detection sensitivity
- HTF MA length
- Exit timing
- Auto-adjusts for daily+ timeframes (60% increase)
═══════════════════════════════════════
⚙️ WHAT YOU SEE ON YOUR CHART
═══════════════════════════════════════
TRENDLINES:
✓ Red resistance lines above price
✓ Green support lines below price  
✓ Orange broken lines (past breakouts)
✓ Lines extend to show current levels
HTF TREND:
✓ Thick colored line showing higher timeframe trend
✓ Color gradient: Red (bearish) → Orange → Yellow → Green (bullish)
✓ 250-bar smoothed curve for visual clarity
ENTRY/EXIT SIGNALS:
✓ Small green dot below bar = Long entry
✓ Small red dot above bar = Short entry
✓ Small red dot above = Long exit
✓ Small black dot below = Short exit
OPTIONAL DETAILED LABELS:
✓ Bank number that triggered entry (Bank 1, 2, or 3)
✓ Exit reason (Profit Target, Stop Loss, HTF Exit, etc.)
✓ Partial profit notifications
POSITION TRACKING:
✓ Yellow dashed line at entry price (extends right)
✓ Green/red fill showing current profit/loss zone
✓ Lime arrows at top = Currently in long position
✓ Red arrows at bottom = Currently in short position
✓ Gray background = No position (flat)
STATS TABLE (Top Right):
✓ Current position (LONG/SHORT/FLAT)
✓ Risk per trade ($ or %)
✓ Entry price
✓ Unrealized P/L in dollars
✓ P/L in R-multiples (how many R's profit/loss)
✓ Average winner/loser R ($ mode) OR CAGR (% mode)
═══════════════════════════════════════
📈 OPTIMAL USAGE
═══════════════════════════════════════
BEST ASSETS:
- NASDAQ:QQQ on 1-hour (reg) chart ⭐ (PRIMARY OPTIMIZATION)
- Strong trending stocks: NVDA, AAPL, TSLA, MSFT, GOOGL, AMZN
- High volatility tech stocks
- Crypto: BTC, ETH
- Any liquid asset with clear trends and momentum (GOLD)
AVOID:
- Low volatility stocks
- Ranging/choppy markets
- Penny stocks or illiquid assets
- Assets without clear directional movement
BEST TIMEFRAMES:
- PRIMARY: 1-hour charts (optimal for QQQ)
- ALSO EXCELLENT: 2H, 4H, 8H
- WORKS: 15min, 30min (only momentum leaders, more noise)
- WORKS WITH ADJUSTMENTS: 1D, 2D (decrease trendline pivot lengths)
═══════════════════════════════════════
📊 BACKTEST RESULTS (QQQ 1H (Reg hours), 1999-2024)
═══════════════════════════════════════
The system showed on NASDAQ:QQQ 1-hour timeframe (regular hours):
- Total Return: 1,100,000%+ over 24 years
- Total Trades: 500+
- Win Rate: ~20-24% (LOW - this is by design!)
- Average Winner: 8-15% gain
- Average Loser: 2-4% loss
- Win/Loss Ratio: 10:1 (winners much bigger than losers)
- Profit Factor: 3+
- Max Drawdown: 45-50%
- Risk per trade: 3% of capital
KEY INSIGHT: This is a LOW WIN RATE, HIGH REWARD system. You will 
lose more trades than you win, but the few winners are so large 
they more than compensate for many small losses.
IMPORTANT: These are backtested results using optimal parameters 
on historical data. Real trading results will vary based on:
- Your execution and timing
- Slippage and commissions
- Your emotional discipline
- Market conditions during your trading period
═══════════════════════════════════════
🎓 WHO IS THIS FOR?
═══════════════════════════════════════
IDEAL FOR:
✓ Swing traders comfortable holding winners for longer period
✓ Part-time traders (1H = check 2-3x per day)
✓ Traders seeking exceptional risk/reward ratios
✓ Those comfortable with low win rates if winners are huge
✓ Technical analysis enthusiasts
✓ Breakout traders
✓ Trend followers
═══════════════════════════════════════
🚀 GETTING STARTED - STEP BY STEP
═══════════════════════════════════════
STEP 1: APPLY TO YOUR CHART
- Search "Tight Entry Trend Engine" in indicators
- Click to apply to your chart
- Trendlines and HTF line will appear immediately
STEP 2: CHOOSE YOUR SETTINGS
For BEGINNERS - Use These Settings First:
1. Trade Direction & Filters:
   • ENABLE LONGS: ✓ ON
   • ENABLE SHORTS: ✗ OFF (start with longs only)
   • Sensitivity: 1.0 (default)
   • HTF Trend Entry Filter: ✓ ON (safer entries)
   • Block Entries When Overextended: ✓ ON (avoid parabolic tops)
2. Position Sizing & Risk:
   • Position Sizing: "Per Risk"
   • RISK Type: "$ Per Trade"
   • Risk Amount: $200 (or 1-3% of your account)
   
3. Visual Settings:
   • Show Support Lines: ✗ OFF (unless trading shorts)
   • Show Detailed Entry/Exit Labels: ✓ ON
   • Show Stats Table: ✓ ON
   • Show Entry Line & P/L Fill: ✓ ON
   
4. Leave everything else at DEFAULT for now
STEP 3: UNDERSTAND WHAT YOU SEE
When trendlines appear:
- RED lines above = Resistance (watch for price breaking UP through these)
- GREEN lines below = Support (watch for price breaking DOWN)
- When price breaks a red line = Potential LONG entry
- When price breaks a green line = Potential SHORT entry
The HTF trend line (thick colored):
- Green/lime = Strong uptrend (favorable for longs)
- Red = Strong downtrend (favorable for shorts if enabled)
- Orange/yellow = Transitioning
STEP 4: OBSERVE SIGNALS
- Small GREEN dot below bar = System entered LONG
- Small RED dot above bar = System exited LONG
- Check the label to see which "Bank" triggered (Bank 1, 2, or 3)
- Watch the yellow entry line and colored fill show your P/L
STEP 5: PAPER TRADE FIRST
- Use TradingView's paper trading feature
- Watch how signals perform on YOUR chosen asset
- Understand the win rate will be LOW (20-35%)
- Verify that winners are indeed much larger than losers
- Test for at least 20-30 signals before going live
STEP 6: OPTIMIZE FOR YOUR ASSET (OPTIONAL)
If default settings aren't working well:
For FASTER signals (more trades):
- Reduce Pivot Length 1 to 3-4
- Reduce Max Length 1 to 120-150
- Increase Sensitivity to 1.2-1.5
For SLOWER signals (higher quality):
- Increase Pivot Length 1 to 7-10
- Increase Max Length 1 to 250+
- Decrease Sensitivity to 0.7-0.9
For DAILY timeframes:
- Increase all Pivot Lengths by 30-50%
- Increase all Max Lengths significantly
- Sensitivity: 0.6-0.8
═══════════════════════════════════════
⚙️ ADVANCED SETTINGS EXPLAINED
═══════════════════════════════════════
TRENDLINE BANK SETTINGS:
Each bank (1, 2, 3) has these parameters:
- Min Touches: Minimum pivots to form a line
  - Lower (2) = More lines, earlier detection
  - Higher (4+) = Fewer lines, higher quality
- Pivot Length: Lookback for swing points
  - Lower (3-5) = Reacts to recent price action
  - Higher (10+) = Only major swing points
- Max Length: How old a trendline can be
  - Shorter (100-150) = Only recent lines
  - Longer (300+) = Include historical levels
- Tolerance: Alignment strictness for horizontal lines
  - Lower (3.0-3.5) = Very strict horizontal
  - Higher (4.5+) = More forgiving alignment
- Allow Angled Lines: Enable diagonal trendlines
  - ON = Catches sloped support/resistance
  - OFF = Only horizontal levels
- Angle Limits: Maximum steepness allowed
  - Lower (1-2) = Only gentle slopes
  - Higher (4-6) = Accept steeper angles
  - Automatically adjusts for volatility
ATR MULTIPLIERS:
- STOP LOSS ATR (0.6): Distance to stop-loss
  - Lower (0.4-0.5) = Tighter stops, stopped out more
  - Higher (0.8-1.0) = Wider stops, more room
- PROFIT TARGET ATR (100): Main profit target
  - This is 100x your risk = 10,000% R:R
  - Lower (50-80) = Take profits sooner
  - Higher (120+) = Let winners run longer
- BREAKEVEN ATR (40): When to move stop to breakeven
  - Lower (20-30) = Protect profits earlier
  - Higher (60+) = Give more room before protecting
HIGHER TIMEFRAME:
- Auto HTF: Automatically selects appropriate HTF
  - 5min chart → uses 2H
  - 15-30min → uses 6H
  - 1-4H → uses 2D
  - Daily → uses 4D
- HTF MA Length (300): HMA period for trend
  - Lower (150-250) = More responsive
  - Higher (400-500) = Smoother, less whipsaw
- HTF Trend Following Exit: Exits when crossing HTF
  - ON = Additional exit method
  - OFF = Rely only on profit targets/stops
- HTF Trend Entry Filter: Only trade with HTF trend
  - ON = Safer, fewer signals
  - OFF = More aggressive, more signals
- Block Entries When Overextended: Prevents chasing
  - ON = Avoids parabolic tops/bottoms
  - OFF = Enter all breakouts regardless
═══════════════════════════════════════
💡 TRADING PHILOSOPHY & EXPECTATIONS
═══════════════════════════════════════
This system is built on one core principle:
"ACCEPT SMALL, FREQUENT LOSSES TO CAPTURE RARE, MASSIVE WINS"
What this means:
- You WILL lose 65%-75% of your trades
- Most losses will be small (1-2R)
- Some winners hit 80R+
- Over time, math works in your favour
Recovery StrategyDescription:
The Recovery Strategy is a long-only trading system designed to capitalize on significant price drops from recent highs. It enters a position when the price falls 10% or more from the highest high over a 6-month lookback period and adds positions on further 2% drops, up to a maximum of 5 positions. Each trade is held for 6 months before exiting, regardless of profit or loss. The strategy uses margin to amplify position sizes, with a default leverage of 5:1 (20% margin requirement). All key parameters are customizable via inputs, allowing flexibility for different assets and timeframes. Visual markers indicate recent highs for reference.
How It Works:
Entry: Buys when the closing price drops 10% or more from the recent high (highest high in the lookback period, default 126 bars ~6 months). If already in a position, additional buys occur on further 2% drops (e.g., 12%, 14%, 16%, 18%), up to 5 positions (pyramiding).
Exit: Each trade exits after its own holding period (default 126 bars ~6 months), regardless of profit or loss. No stop loss or take-profit is used.
Margin: Uses leverage to control larger positions (default 20% margin, 5:1 leverage). The order size is a percentage of equity (default 100%), adjustable via inputs.
Visualization: Displays blue markers (without text) at new recent highs to highlight reference levels.
Inputs:
Lookback Period for High Peak (bars): Number of bars to look back for the recent high (default: 126, ~6 months on daily charts).
Initial Drop Percentage to Buy (%): Percentage drop from recent high to trigger the first buy (default: 10.0%).
Additional Drop Percentage to Buy (%): Further drop percentage to add positions (default: 2.0%).
Holding Period (bars): Number of bars to hold each position before selling (default: 126, ~6 months).
Order Size (% of Equity): Percentage of equity used per trade (default: 100%).
Margin for Long Positions (%): Percentage of position value covered by equity (default: 20%, equivalent to 5:1 leverage).
Usage:
Timeframe: Designed for daily charts (126 bars ~6 months). Adjust Lookback Period and Holding Period for other timeframes (e.g., 1008 hours for hourly charts, assuming 8 trading hours/day).
Assets: Suitable for stocks, ETFs, or other assets with significant price volatility. Test thoroughly on your chosen asset.
Settings: Customize inputs in the strategy settings to match your risk tolerance and market conditions. For example, lower Margin for Long Positions (e.g., to 10% for 10:1 leverage) to increase position sizes, but beware of higher risk.
Backtesting: Use TradingView’s Strategy Tester to evaluate performance. Check the “List of Trades” for skipped trades due to insufficient equity or margin requirements.
Risks and Considerations:
No Stop Loss: The strategy holds trades for the full 6 months without a stop loss, exposing it to significant drawdowns in prolonged downtrends.
Margin Risk: Leverage (default 5:1) amplifies both profits and losses. Ensure sufficient equity to cover margin requirements to avoid skipped trades or simulated margin calls.
Pyramiding: Up to 5 positions can be open simultaneously, increasing exposure. Adjust pyramiding in the code if fewer positions are desired (e.g., change to pyramiding=3).
Market Conditions: Performance depends on price drops and recoveries. Test on historical data to assess effectiveness in your market.
Broker Emulator: TradingView’s paper trading simulates margin but does not execute real margin trading. Results may differ in live trading due to broker-specific margin rules.
How to Use:
Add the strategy to your chart in TradingView.
Adjust input parameters in the settings panel to suit your asset, timeframe, and risk preferences.
Run a backtest in the Strategy Tester to evaluate performance.
Monitor open positions and margin levels in the Trading Panel to manage risk.
For live trading, consult your broker’s margin requirements and leverage policies, as TradingView’s simulation may not match real-world conditions.
Disclaimer:
This strategy is for educational purposes only and does not constitute financial advice. Trading involves significant risk, especially with leverage and no stop loss. Always backtest thoroughly and consult a financial advisor before using any strategy in live trading.
Game Theory Trading StrategyGame Theory Trading Strategy: Explanation and Working Logic
This Pine Script (version 5) code implements a trading strategy named "Game Theory Trading Strategy" in TradingView. Unlike the previous indicator, this is a full-fledged strategy with automated entry/exit rules, risk management, and backtesting capabilities. It uses Game Theory principles to analyze market behavior, focusing on herd behavior, institutional flows, liquidity traps, and Nash equilibrium to generate buy (long) and sell (short) signals. Below, I'll explain the strategy's purpose, working logic, key components, and usage tips in detail.
1. General Description
Purpose: The strategy identifies high-probability trading opportunities by combining Game Theory concepts (herd behavior, contrarian signals, Nash equilibrium) with technical analysis (RSI, volume, momentum). It aims to exploit market inefficiencies caused by retail herd behavior, institutional flows, and liquidity traps. The strategy is designed for automated trading with defined risk management (stop-loss/take-profit) and position sizing based on market conditions.
Key Features:
Herd Behavior Detection: Identifies retail panic buying/selling using RSI and volume spikes.
Liquidity Traps: Detects stop-loss hunting zones where price breaks recent highs/lows but reverses.
Institutional Flow Analysis: Tracks high-volume institutional activity via Accumulation/Distribution and volume spikes.
Nash Equilibrium: Uses statistical price bands to assess whether the market is in equilibrium or deviated (overbought/oversold).
Risk Management: Configurable stop-loss (SL) and take-profit (TP) percentages, dynamic position sizing based on Game Theory (minimax principle).
Visualization: Displays Nash bands, signals, background colors, and two tables (Game Theory status and backtest results).
Backtesting: Tracks performance metrics like win rate, profit factor, max drawdown, and Sharpe ratio.
Strategy Settings:
Initial capital: $10,000.
Pyramiding: Up to 3 positions.
Position size: 10% of equity (default_qty_value=10).
Configurable inputs for RSI, volume, liquidity, institutional flow, Nash equilibrium, and risk management.
Warning: This is a strategy, not just an indicator. It executes trades automatically in TradingView's Strategy Tester. Always backtest thoroughly and use proper risk management before live trading.
2. Working Logic (Step by Step)
The strategy processes each bar (candle) to generate signals, manage positions, and update performance metrics. Here's how it works:
a. Input Parameters
The inputs are grouped for clarity:
Herd Behavior (🐑):
RSI Period (14): For overbought/oversold detection.
Volume MA Period (20): To calculate average volume for spike detection.
Herd Threshold (2.0): Volume multiplier for detecting herd activity.
Liquidity Analysis (💧):
Liquidity Lookback (50): Bars to check for recent highs/lows.
Liquidity Sensitivity (1.5): Volume multiplier for trap detection.
Institutional Flow (🏦):
Institutional Volume Multiplier (2.5): For detecting large volume spikes.
Institutional MA Period (21): For Accumulation/Distribution smoothing.
Nash Equilibrium (⚖️):
Nash Period (100): For calculating price mean and standard deviation.
Nash Deviation (0.02): Multiplier for equilibrium bands.
Risk Management (🛡️):
Use Stop-Loss (true): Enables SL at 2% below/above entry price.
Use Take-Profit (true): Enables TP at 5% above/below entry price.
b. Herd Behavior Detection
RSI (14): Checks for extreme conditions:
Overbought: RSI > 70 (potential herd buying).
Oversold: RSI < 30 (potential herd selling).
Volume Spike: Volume > SMA(20) x 2.0 (herd_threshold).
Momentum: Price change over 10 bars (close - close ) compared to its SMA(20).
Herd Signals:
Herd Buying: RSI > 70 + volume spike + positive momentum = Retail buying frenzy (red background).
Herd Selling: RSI < 30 + volume spike + negative momentum = Retail selling panic (green background).
c. Liquidity Trap Detection
Recent Highs/Lows: Calculated over 50 bars (liquidity_lookback).
Psychological Levels: Nearest round numbers (e.g., $100, $110) as potential stop-loss zones.
Trap Conditions:
Up Trap: Price breaks recent high, closes below it, with a volume spike (volume > SMA x 1.5).
Down Trap: Price breaks recent low, closes above it, with a volume spike.
Visualization: Traps are marked with small red/green crosses above/below bars.
d. Institutional Flow Analysis
Volume Check: Volume > SMA(20) x 2.5 (inst_volume_mult) = Institutional activity.
Accumulation/Distribution (AD):
Formula: ((close - low) - (high - close)) / (high - low) * volume, cumulated over time.
Smoothed with SMA(21) (inst_ma_length).
Accumulation: AD > MA + high volume = Institutions buying.
Distribution: AD < MA + high volume = Institutions selling.
Smart Money Index: (close - open) / (high - low) * volume, smoothed with SMA(20). Positive = Smart money buying.
e. Nash Equilibrium
Calculation:
Price mean: SMA(100) (nash_period).
Standard deviation: stdev(100).
Upper Nash: Mean + StdDev x 0.02 (nash_deviation).
Lower Nash: Mean - StdDev x 0.02.
Conditions:
Near Equilibrium: Price between upper and lower Nash bands (stable market).
Above Nash: Price > upper band (overbought, sell potential).
Below Nash: Price < lower band (oversold, buy potential).
Visualization: Orange line (mean), red/green lines (upper/lower bands).
f. Game Theory Signals
The strategy generates three types of signals, combined into long/short triggers:
Contrarian Signals:
Buy: Herd selling + (accumulation or down trap) = Go against retail panic.
Sell: Herd buying + (distribution or up trap).
Momentum Signals:
Buy: Below Nash + positive smart money + no herd buying.
Sell: Above Nash + negative smart money + no herd selling.
Nash Reversion Signals:
Buy: Below Nash + rising close (close > close ) + volume > MA.
Sell: Above Nash + falling close + volume > MA.
Final Signals:
Long Signal: Contrarian buy OR momentum buy OR Nash reversion buy.
Short Signal: Contrarian sell OR momentum sell OR Nash reversion sell.
g. Position Management
Position Sizing (Minimax Principle):
Default: 1.0 (10% of equity).
In Nash equilibrium: Reduced to 0.5 (conservative).
During institutional volume: Increased to 1.5 (aggressive).
Entries:
Long: If long_signal is true and no existing long position (strategy.position_size <= 0).
Short: If short_signal is true and no existing short position (strategy.position_size >= 0).
Exits:
Stop-Loss: If use_sl=true, set at 2% below/above entry price.
Take-Profit: If use_tp=true, set at 5% above/below entry price.
Pyramiding: Up to 3 concurrent positions allowed.
h. Visualization
Nash Bands: Orange (mean), red (upper), green (lower).
Background Colors:
Herd buying: Red (90% transparency).
Herd selling: Green.
Institutional volume: Blue.
Signals:
Contrarian buy/sell: Green/red triangles below/above bars.
Liquidity traps: Red/green crosses above/below bars.
Tables:
Game Theory Table (Top-Right):
Herd Behavior: Buying frenzy, selling panic, or normal.
Institutional Flow: Accumulation, distribution, or neutral.
Nash Equilibrium: In equilibrium, above, or below.
Liquidity Status: Trap detected or safe.
Position Suggestion: Long (green), Short (red), or Wait (gray).
Backtest Table (Bottom-Right):
Total Trades: Number of closed trades.
Win Rate: Percentage of winning trades.
Net Profit/Loss: In USD, colored green/red.
Profit Factor: Gross profit / gross loss.
Max Drawdown: Peak-to-trough equity drop (%).
Win/Loss Trades: Number of winning/losing trades.
Risk/Reward Ratio: Simplified Sharpe ratio (returns / drawdown).
Avg Win/Loss Ratio: Average win per trade / average loss per trade.
Last Update: Current time.
i. Backtesting Metrics
Tracks:
Total trades, winning/losing trades.
Win rate (%).
Net profit ($).
Profit factor (gross profit / gross loss).
Max drawdown (%).
Simplified Sharpe ratio (returns / drawdown).
Average win/loss ratio.
Updates metrics on each closed trade.
Displays a label on the last bar with backtest period, total trades, win rate, and net profit.
j. Alerts
No explicit alertconditions defined, but you can add them for long_signal and short_signal (e.g., alertcondition(long_signal, "GT Long Entry", "Long Signal Detected!")).
Use TradingView's alert system with Strategy Tester outputs.
3. Usage Tips
Timeframe: Best for H1-D1 timeframes. Shorter frames (M1-M15) may produce noisy signals.
Settings:
Risk Management: Adjust sl_percent (e.g., 1% for volatile markets) and tp_percent (e.g., 3% for scalping).
Herd Threshold: Increase to 2.5 for stricter herd detection in choppy markets.
Liquidity Lookback: Reduce to 20 for faster markets (e.g., crypto).
Nash Period: Increase to 200 for longer-term analysis.
Backtesting:
Use TradingView's Strategy Tester to evaluate performance.
Check win rate (>50%), profit factor (>1.5), and max drawdown (<20%) for viability.
Test on different assets/timeframes to ensure robustness.
Live Trading:
Start with a demo account.
Combine with other indicators (e.g., EMAs, support/resistance) for confirmation.
Monitor liquidity traps and institutional flow for context.
Risk Management:
Always use SL/TP to limit losses.
Adjust position_size for risk tolerance (e.g., 5% of equity for conservative trading).
Avoid over-leveraging (pyramiding=3 can amplify risk).
Troubleshooting:
If no trades are executed, check signal conditions (e.g., lower herd_threshold or liquidity_sensitivity).
Ensure sufficient historical data for Nash and liquidity calculations.
If tables overlap, adjust position.top_right/bottom_right coordinates.
4. Key Differences from the Previous Indicator
Indicator vs. Strategy: The previous code was an indicator (VP + Game Theory Integrated Strategy) focused on visualization and alerts. This is a strategy with automated entries/exits and backtesting.
Volume Profile: Absent in this strategy, making it lighter but less focused on high-volume zones.
Wick Analysis: Not included here, unlike the previous indicator's heavy reliance on wick patterns.
Backtesting: This strategy includes detailed performance metrics and a backtest table, absent in the indicator.
Simpler Signals: Focuses on Game Theory signals (contrarian, momentum, Nash reversion) without the "Power/Ultra Power" hierarchy.
Risk Management: Explicit SL/TP and dynamic position sizing, not present in the indicator.
5. Conclusion
The "Game Theory Trading Strategy" is a sophisticated system leveraging herd behavior, institutional flows, liquidity traps, and Nash equilibrium to trade market inefficiencies. It’s designed for traders who understand Game Theory principles and want automated execution with robust risk management. However, it requires thorough backtesting and parameter optimization for specific markets (e.g., forex, crypto, stocks). The backtest table and visual aids make it easy to monitor performance, but always combine with other analysis tools and proper capital management.
If you need help with backtesting, adding alerts, or optimizing parameters, let me know!
Portfolio Tracker ARJO (V-01)Portfolio Tracker ARJO (V-01) 
This indicator is a user-friendly portfolio tracking tool designed for TradingView charts. It overlays a customizable table on your chart to monitor up to 15 stocks or symbols in your portfolio. It calculates real-time metrics like current market price (CMP), gains/losses, and stoploss breaches, helping you stay on top of your investments without switching between multiple charts. The table uses color-coding for quick visual insights: green for profits, red for losses, and highlights breached stoplosses in red for alerts. It also shows portfolio-wide totals for overall performance.
 Key Features 
 
 Supports up to 15 Symbols: Enter stock tickers (e.g., NSE:RELIANCE or BSE:TCS) with details like buy price, date, units, and stoploss.
 
 
 Symbol: The stock ticker and description.
 Buy Date: When you purchased it.
 Units: Number of shares/units held.
 Buy Price: Your entry price.
 Stop Loss: Your set stoploss level (highlighted in red if breached by CMP).
 CMP: Current market price (fetched from the chart's timeframe).
 % Gain/Loss: Percentage change from buy price (color-coded: green for positive, red for negative).
 Gain/Loss: Total monetary gain/loss based on units.
 
 
  Optional Timeframe Columns: Toggle to show % change over 1 Week (1W), 1 Month (1M), 3 Months (3M), and 6 Months (6M) for historical performance.
 
 
  Portfolio Summary: At the top of the table, see total % gain/loss and absolute gain/loss for your entire portfolio.
 
 
  Visual Customizations: Adjust table position (e.g., Top Right), size, colors for positive/negative values, and intensity cutoff for gradients.
 
 
  Benchmark Index-Based Header: The title row's background color reflects NIFTY's weekly trend (green if above 10-week SMA, red if below) for market context.
 
 
  Benchmark Index-Based Header: The title row's background color reflects NIFTY's weekly trend (green if above 10-week SMA, red if below) for market context.
 
 How to Use It: Step-by-Step Guide 
  Add the Indicator to Your Chart: Search for "Portfolio Tracker ARJO (V-01)" in TradingView's indicator library and add it to any chart (preferably Daily timeframe for accuracy).
 Input Your Portfolio Symbols: 
  Open the indicator settings (gear icon).
 In the "Symbol 1" to "Symbol 15" groups, fill in:
Symbol: Enter the ticker (e.g., NSE:INFY).
Year/Month/Day: Select your buy date (e.g., 2024-07-01).
Buy Price: Your purchase price per unit.
Stoploss: Your exit price if things go south.
Units: How many shares you own.
 Only fill what you need—leave extras blank. The table auto-adjusts to show only entered symbols.
 Customize the Table (Optional): 
 In "Table settings":
Choose position (e.g., Top Right) and size (% of chart).
Toggle "Show Timeframe Columns" to add 1W/1M/3M/6M performance.
 In "Color settings":
Pick colors for positive (green) and negative (red) cells.
Set "Color intensity cutoff (%)" to control how strong the colors get (e.g., 10% means changes above 10% max out the color).
 Interpret the Table on Your Chart: 
 The table appears overlaid—scan rows for each symbol's stats.
 Look at colors: Greener = better gains; redder = bigger losses.
 Check CMP cell: Red means stoploss breached—consider selling!
 Portfolio Gain/Loss at the top gives a quick overall health check.
 For Best Results: 
 Use on a Daily chart to avoid CMP errors (the script will warn if on Weekly/Monthly).
 Refresh the chart or wait for a new bar if data doesn't update immediately.
 For Indian stocks, prefix with NSE: or BSE: (e.g., BSE:RELIANCE).
 This is for tracking only—not trading signals. Combine with your strategy.
 If no symbols show, ensure inputs are valid (e.g., buy price > 0, valid date).
Finally, this tool makes it quite easy for beginners to track their portfolios, while also giving advanced traders powerful and customizable insights. I'd love to hear your feedback—happy trading!
Neuracap Gap AnalysisThe Neuracap Gap Analysis indicator is a comprehensive tool designed to identify and track price gaps, special candlestick patterns, and high-volume breakout signals. It combines multiple trading strategies into one powerful indicator for gap trading, pattern recognition, and momentum analysis.
🎯 What This Indicator Does
1. Gap Detection & Tracking
Automatically identifies price gaps (up and down)
Tracks gap fills with visual boxes that extend until closed
Manages gap history with customizable limits
Color-coded visualization (Green = Gap Up, Red = Gap Down)
2. Upside Tasuki Gap Pattern
Identifies the bullish continuation pattern
Colors candles yellow when pattern is detected
Confirms trend continuation signals
3. Episodic Pivot Detection
High-volume breakout identification
EMA filter ensures signals only in uptrends
Strong momentum confirmation
Fuchsia-colored candles with arrow markers
🔍 How to Use for Trading
📈 Gap Trading Strategy
Gap Up Trading:
Wait for gap up (green box appears)
Check volume - Higher volume = stronger signal
Entry options:
Aggressive: Enter at market open
Conservative: Wait for pullback to gap level
Stop loss: Below the gap fill level
Target: Previous resistance or 2:1 risk/reward
Gap Down Trading:
Identify gap down (red box appears)
Look for bounce opportunities
Entry: When price shows reversal signs
Stop: Below recent lows
Target: Gap fill level
💫 Tasuki Gap Strategy
Yellow candle indicates bullish continuation
Confirms uptrend is likely to continue
Entry: On next candle after pattern
Stop: Below the gap low
Target: Next resistance level
🚀 Episodic Pivot Strategy
Fuchsia candle + arrow = High probability breakout
All conditions met:
Price above EMA 20, 50, 200
High volume (2x+ average)
Strong price move (4%+)
Entry: At close or next open
Stop: Below EMA 20 or recent swing low
Target: Measured move or next resistance
📊 Reading the Visual Signals
Gap Boxes
🟢 Green Box: Gap up - potential bullish continuation
🔴 Red Box: Gap down - potential bounce or bearish continuation
Box extends until gap is filled
Box disappears when gap closes
Candle Colors
🟡 Yellow: Tasuki gap pattern (bullish continuation)
🟪 Fuchsia: Episodic pivot (high-volume breakout)
⬜ Normal: No special pattern detected
Arrows & Markers
⬆️ Triangle Arrow: Episodic pivot confirmation
💡 Trading Tips & Best Practices
✅ Do's
Combine with trend analysis - Trade gaps in direction of trend
Check volume - Higher volume = more reliable signals
Use multiple timeframes - Confirm on higher timeframes
Risk management - Always set stop losses
Wait for confirmation - Don't chase, let signals develop
❌ Don'ts
Don't trade all gaps - Focus on high-quality setups
Avoid low volume - Weak volume = unreliable signals
Don't ignore trend - Counter-trend trading is risky
Don't overtrade - Quality over quantity
Don't ignore context - Consider market conditions
⚠️ Risk Management
Position sizing: Risk 1-2% per trade
Stop losses: Always define before entry
Target levels: Set realistic profit targets
Market conditions: Avoid trading in choppy markets
📈 Performance Optimization
For Conservative Traders:
Increase minimum gap size to 1%
Set volume multiplier to 3.0x
Only trade episodic pivots in strong uptrends
Wait for gap fill confirmation
For Aggressive Traders:
Decrease minimum gap size to 0.3%
Set volume multiplier to 1.5x
Trade both gap types
Enter on pattern confirmation
🚨 Alert Setup
The indicator provides alerts for:
Gap Up Detected
Gap Down Detected
Upside Tasuki Gap
Episodic Pivot
Recommended: Enable all alerts and filter manually based on your strategy.
📝 Summary
This indicator excels at identifying high-probability trading opportunities through gap analysis, pattern recognition, and momentum confirmation. Use it as part of a complete trading system with proper risk management for best results.
EMA 12/26 With ATR Volatility StoplossThe EMA 12/26 With ATR Volatility Stoploss
     The EMA 12/26 With ATR Volatility Stoploss strategy is a meticulously designed systematic trading approach tailored for navigating financial markets through technical analysis. By integrating the Exponential Moving Average (EMA) and Average True Range (ATR) indicators, the strategy aims to identify optimal entry and exit points for trades while prioritizing disciplined risk management. At its core, it is a trend-following system that seeks to capitalize on price momentum, employing volatility-adjusted stop-loss mechanisms and dynamic position sizing to align with predefined risk parameters. Additionally, it offers traders the flexibility to manage profits either by compounding returns or preserving initial capital, making it adaptable to diverse trading philosophies. This essay provides a comprehensive exploration of the strategy’s underlying concepts, key components, strengths, limitations, and practical applications, without delving into its technical code.
=====
Core Philosophy and Objectives 
     The EMA 12/26 With ATR Volatility Stoploss strategy is built on the premise of capturing short- to medium-term price trends with a high degree of automation and consistency. It leverages the crossover of two EMAs—a fast EMA (12-period) and a slow EMA (26-period)—to generate buy and sell signals, which indicate potential trend reversals or continuations. To mitigate the inherent risks of trading, the strategy incorporates the ATR indicator to set stop-loss levels that adapt to market volatility, ensuring that losses remain within acceptable bounds. Furthermore, it calculates position sizes based on a user-defined risk percentage, safeguarding capital while optimizing trade exposure.
A distinctive feature of the strategy is its dual profit management modes:
     SnowBall (Compound Profit): Profits from successful trades are reinvested into the capital base, allowing for progressively larger position sizes and potential exponential portfolio growth.
     ZeroRisk (Fixed Equity): Profits are withdrawn, and trades are executed using only the initial capital, prioritizing capital preservation and minimizing exposure to market downturns.
     This duality caters to both aggressive traders seeking growth and conservative traders focused on stability, positioning the strategy as a versatile tool for various market environments.
=====
Key Components of the Strategy
     1. EMA-Based Signal Generation
     The strategy’s trend-following mechanism hinges on the interaction between the Fast EMA (12-period) and Slow EMA (26-period). EMAs are preferred over simple moving averages because they assign greater weight to recent price data, enabling quicker responses to market shifts. The key signals are:
     Buy Signal: Triggered when the Fast EMA crosses above the Slow EMA, suggesting the onset of an uptrend or bullish momentum.
     Sell Signal: Occurs when the Fast EMA crosses below the Slow EMA, indicating a potential downtrend or the end of a bullish phase.
     To enhance signal reliability, the strategy employs an Anchor Point EMA (AP EMA), a short-period EMA (e.g., 2 days) that smooths the input price data before calculating the primary EMAs. This preprocessing reduces noise from short-term price fluctuations, improving the accuracy of trend detection. Additionally, users can opt for a Consolidated EMA (e.g., 18-period) to display a single trend line instead of both EMAs, simplifying chart analysis while retaining trend insights.
=====
2. Volatility-Adjusted Risk Management with ATR
     Risk management is a cornerstone of the strategy, achieved through the use of the Average True Range (ATR), which quantifies market volatility by measuring the average price range over a specified period (e.g., 10 days). The ATR informs the placement of stop-loss levels, which are set at a multiple of the ATR (e.g., 2x ATR) below the entry price for long positions. This approach ensures that stop losses are proportionate to current market conditions—wider during high volatility to avoid premature exits, and narrower during low volatility to protect profits.
     For example, if a stock’s ATR is $1 and the multiplier is 2, the stop loss for a buy at $100 would be set at $98. This dynamic adjustment enhances the strategy’s adaptability, preventing stop-outs from normal market noise while capping potential losses.
=====
3. Dynamic Position Sizing
     The strategy calculates position sizes to align with a user-defined Risk Per Trade, typically expressed as a percentage of capital (e.g., 2%). The position size is determined by:
     The available capital, which varies depending on whether SnowBall or ZeroRisk mode is selected.
     The distance between the entry price and the ATR-based stop-loss level, which represents the per-unit risk.
     The desired risk percentage, ensuring that the maximum loss per trade does not exceed the specified threshold.
     For instance, with a $1,000 capital, a 2% risk per trade ($20), and a stop-loss distance equivalent to 5% of the entry price, the strategy computes the number of units (shares or contracts) to ensure the total loss, if the stop loss is hit, equals $20. To prevent over-leveraging, the strategy includes checks to ensure that the position’s dollar value does not exceed available capital. If it does, the position size is scaled down to fit within the capital constraints, maintaining financial discipline.
=====
4. Flexible Capital Management
     The strategy’s dual profit management modes—SnowBall and ZeroRisk—offer traders strategic flexibility:
     SnowBall Mode: By compounding profits, traders can increase their capital base, leading to larger position sizes over time. This is ideal for those with a long-term growth mindset, as it harnesses the power of exponential returns.
     ZeroRisk Mode: By withdrawing profits and trading solely with the initial capital, traders protect their gains and limit exposure to market volatility. This conservative approach suits those prioritizing stability over aggressive growth.
     These options allow traders to tailor the strategy to their risk tolerance, financial goals, and market outlook, enhancing its applicability across different trading styles.
=====
5. Time-Based Trade Filtering
     To optimize performance and relevance, the strategy includes an option to restrict trading to a specific time range (e.g., from 2018 onward). This feature enables traders to focus on periods with favorable market conditions, avoid historically volatile or unreliable data, or align the strategy with their backtesting objectives. By confining trades to a defined timeframe, the strategy ensures that performance metrics reflect the intended market context.
=====
Strengths of the Strategy
     The EMA 12/26 With ATR Volatility Stoploss strategy offers several compelling advantages:
     Systematic and Objective: By adhering to predefined rules, the strategy eliminates emotional biases, ensuring consistent execution across market conditions.
     Robust Risk Controls: The combination of ATR-based stop losses and risk-based position sizing caps losses at user-defined levels, fostering capital preservation.
     Customizability: Traders can adjust parameters such as EMA periods, ATR multipliers, and risk percentages, tailoring the strategy to specific markets or preferences.
     Volatility Adaptation: Stop losses that scale with market volatility enhance the strategy’s resilience, accommodating both calm and turbulent market phases.
     Enhanced Visualization: The use of color-coded EMAs (green for bullish, red for bearish) and background shading provides intuitive visual cues, simplifying trend and trade status identification.
=====
Limitations and Considerations
     Despite its strengths, the strategy has inherent limitations that traders must address:
     False Signals in Range-Bound Markets: EMA crossovers may generate misleading signals in sideways or choppy markets, leading to whipsaws and unprofitable trades.
     Signal Lag: As lagging indicators, EMAs may delay entry or exit signals, causing traders to miss rapid trend shifts or enter trades late.
     Overfitting Risk: Excessive optimization of parameters to fit historical data can impair the strategy’s performance in live markets, as past patterns may not persist.
     Impact of High Volatility: In extremely volatile markets, wider stop losses may result in larger losses than anticipated, challenging risk management assumptions.
     Data Reliability: The strategy’s effectiveness depends on accurate, continuous price data, and discrepancies or gaps can undermine signal accuracy.
=====
Practical Applications
     The EMA 12/26 With ATR Volatility Stoploss strategy is versatile, applicable to diverse markets such as stocks, forex, commodities, and cryptocurrencies, particularly in trending environments. To maximize its potential, traders should adopt a rigorous implementation process:
     Backtesting: Evaluate the strategy’s historical performance across various market conditions to assess its robustness and identify optimal parameter settings.
     Forward Testing: Deploy the strategy in a demo account to validate its real-time performance, ensuring it aligns with live market dynamics before risking capital.
     Ongoing Monitoring: Continuously track trade outcomes, analyze performance metrics, and refine parameters to adapt to evolving market conditions.
     Additionally, traders should consider market-specific factors, such as liquidity and volatility, when applying the strategy. For instance, highly liquid markets like forex may require tighter ATR multipliers, while less liquid markets like small-cap stocks may benefit from wider stop losses.
=====
Conclusion
     The EMA 12/26 With ATR Volatility Stoploss strategy is a sophisticated, systematic trading framework that blends trend-following precision with disciplined risk management. By leveraging EMA crossovers for signal generation, ATR-based stop losses for volatility adjustment, and dynamic position sizing for risk control, it offers a balanced approach to capturing market trends while safeguarding capital. Its flexibility—evident in customizable parameters and dual profit management modes—makes it suitable for traders with varying risk appetites and objectives. However, its limitations, such as susceptibility to false signals and signal lag, necessitate thorough testing and prudent application. Through rigorous backtesting, forward testing, and continuous refinement, traders can harness this strategy to achieve consistent, risk-adjusted returns in trending markets, establishing it as a valuable tool in the arsenal of systematic trading.
Sideways Scalper Peak and BottomUnderstanding the Indicator
This indicator is designed to identify potential peaks (tops) and bottoms (bottoms) within a market, which can be particularly useful in a sideways or range-bound market where price oscillates between support and resistance levels without a clear trend. Here's how it works:
RSI (Relative Strength Index): Measures the speed and change of price movements to identify overbought (above 70) and oversold (below 30) conditions. In a sideways market, RSI can help signal when the price might be due for a reversal within its range.
Moving Averages (MAs): The Fast MA and Slow MA provide a sense of the short-term and longer-term average price movements. In a sideways market, these can help confirm if the price is at the upper or lower extremes of its range.
Volume Spike: Looks for significant increases in trading volume, which might indicate a stronger move or a potential reversal point when combined with other conditions.
Divergence: RSI divergence occurs when the price makes a new high or low, but the RSI does not, suggesting momentum is weakening, which can be a precursor to a reversal.
How to Use in a Sideways Market
Identify the Range: First, visually identify the upper resistance and lower support levels of the sideways market on your chart. This indicator can help you spot these levels more precisely by signaling potential peaks and bottoms.
Peak Signal :
When to Look: When the price approaches the upper part of the range.
Conditions: The indicator will give a 'Peak' signal when:
RSI is over 70, indicating overbought conditions.
There's bearish divergence (price makes a higher high, but RSI doesn't).
Volume spikes, suggesting strong selling interest.
Price is above both Fast MA and Slow MA, indicating it's at a potentially high point in the range.
Action: This signal suggests that the price might be at or near the top of its range and could reverse downwards. A trader might consider selling or shorting here, expecting the price to move towards the lower part of the range.
Bottom Signal:
When to Look: When the price approaches the lower part of the range.
Conditions: The indicator will give a 'Bottom' signal when:
RSI is below 30, indicating oversold conditions.
There's bullish divergence (price makes a lower low, but RSI doesn't).
Volume spikes, suggesting strong buying interest.
Price is below both Fast MA and Slow MA, indicating it's at a potentially low point in the range.
Action: This signal suggests that the price might be at or near the bottom of its range and could reverse upwards. A trader might consider buying here, expecting the price to move towards the upper part of the range.
Confirmation: In a sideways market, false signals can occur due to the lack of a strong trend. Always look for confirmation:
Volume Confirmation: A significant volume spike can add confidence to the signal.
Price Action: Look for price action like candlestick patterns (e.g., doji, engulfing patterns) that confirm the reversal.
Time Frame: Consider using this indicator on multiple time frames. A signal on a shorter time frame (like 15m or 1h) might be confirmed by similar conditions on a longer time frame (4h or daily).
Risk Management: Since this is designed for scalping in a sideways market:
Set Tight Stop-Losses: Due to the quick nature of reversals in range-bound markets, place stop-losses close to your entry to minimize loss.
Take Profit Levels: Set profit targets near the opposite end of the range or use a trailing stop to capture as much of the move as possible before it reverses again.
Practice: Before trading with real money, practice with this indicator on historical data or in a paper trading environment to understand how it behaves in different sideways market scenarios.
Key Points for New Traders
Patience: Wait for all conditions to align before taking a trade. Sideways markets require patience as the price might hover around these levels for a while.
Not All Signals Are Equal: Sometimes, even with all conditions met, the market might not reverse immediately. Look for additional context or confirmation.
Continuous Learning: Understand that this indicator, like any tool, isn't foolproof. Learn from each trade, whether it's a win or a loss, and adjust your strategy accordingly.
By following these guidelines
Strategy: Candlestick Wick Analysis with Volume Conditions 
This strategy focuses on analyzing the wicks (or shadows) of candlesticks to identify potential trading opportunities based on candlestick structure and volume. Based on these criteria, it places stop orders at the extremities of the wicks when certain conditions are met, thus increasing the chances of capturing significant price movements.
Trading Criteria
Volume Conditions:
The strategy checks if the volume of the current candle is higher than that of the previous three candles. This ensures that the observed price movement is supported by significant volume, increasing the probability that the price will continue in the same direction.
Wick Analysis:
Upper Wick:
If the upper wick of a candle represents more than 90% of its body size and is longer than the lower wick, this indicates that the price tested a resistance level before pulling back.
Order Placement: In this case, a Buy Stop order is placed at the upper extremity of the wick. This means that if the price rises back to this level, the order will be triggered, and the trader will take a buy position.
SL Management: A stop-loss is then placed below the lowest point of the same candle. This protects the trader by limiting losses if the price falls back after the order is triggered.
Lower Wick:
If the lower wick of a candle is longer than the upper wick and represents more than 90% of its body size, this indicates that the price tested a support level before rising.
Order Placement: In this case, a Sell Stop order is placed at the lower extremity of the wick. Thus, if the price drops back to this level, the order will be triggered, and the trader will take a sell position.
SL Management: A stop-loss is then placed above the highest point of the same candle. This ensures risk management by limiting losses if the price rebounds upward after the order is triggered.
Strategy Advantages
Responsiveness to Price Movements: The strategy is designed to detect significant price movements based on the market's reaction around support and resistance levels. By placing stop orders directly at the wick extremities, it allows capturing strong movements in the direction indicated by the candles.
Securing Positions: Using stop-losses positioned just above or below key levels (wicks) provides better risk management. If the market doesn't move as expected, the position is automatically closed with a limited loss.
Clear Visual Indicators: Symbols are displayed on the chart at the points where orders have been placed, making it easier to understand trading decisions. This helps to quickly identify the support or resistance levels tested by the price, as well as potential entry points.
Conclusion
The strategy is based on the idea that large wicks signal areas where buyers or sellers have tested significant price levels before temporarily retreating. By placing stop orders at the extremities of these wicks, the strategy allows capturing price movements when they confirm, while limiting risks through strategically placed stop-losses. It thus offers a balanced approach between capturing potential profit and managing risk.
This description emphasizes the idea of capturing significant market movements with stop orders while providing a clear explanation of the logic and risk management. It’s tailored for publication on TradingView and highlights the robustness of the strategy.
Pro V3 [SMRT Algo]SMRT Algo Suite  is a versatile toolkit featuring advanced features designed to deliver valuable signals and insights, catering to every trader's technical analysis requirements with precise data.
The  SMRT Algo V3  represents a groundbreaking, comprehensive solution built from the ground up for traders.
While SMRT Algo can complement other technical analysis methods, it is also designed to function effectively as a standalone indicator adaptable to any trading style. Each feature is designed with the understanding that not all technical indicators suit every market condition.
The optimal approach to leveraging this indicator is to explore its diverse features gradually, select a few that best match your trading style, and use them consistently to develop a personalized SMRT Algo strategy.
  
Features:
 
  Buy & Sell Signals: Clear buy and sell signals displayed on the chart, with ‘+’ indicating strong signals and normal signals without ‘+’.
  Candle Coloring: Blue and red candle colors to signify bullish and bearish trends, respectively.
  Signal Sensitivity: Adjust the frequency of signals to match your trading preferences.
  MA Filter: Customizable moving average filter to ensure trades align with the prevailing trend.
  Dashboard: Multi-timeframe analysis with information on various timeframes, offering quick decision-making capabilities and a customizable dashboard size.
  Trailing Stop Loss: Suggestions for trailing stop losses to maximize profits while minimizing risk.
  Power MA: A custom moving average that closely follows price, highlighting short-term market trends.
  ChoCh/Bos: Displays internal market structure, including changes of character and breaks of structure.
  Market Structure: Shows external market structure, detailing changes of character, breaks of structure, and pivot points.
  Support & Resistance: Key support and resistance zones plotted on the chart.
  Reversals: Highlights areas with a high likelihood of reversal using diamond markers.
  Reversal Bands: Zones where price is likely to reverse or correct.
  Trend Lines: Auto-plotted trendlines for quick and easy analysis.
  Retest Zones: Ideal for break-and-retest traders, identifying key retest zones for entries and re-entries
  Take Profit & Stop Loss: Customizable take profit and stop loss points.
  Full Any Alert() Function Call Conditions: Create custom alerts directly to your TradingView device for timely notifications.
  Additional features: A set of toggles turning on/off these indicators.
 
  
SMRT Algo Pro V3 offers a comprehensive set of features designed to enhance your trading experience by providing actionable insights and customizable tools for all trading styles.
 SMRT Algo Pro V3 Confirmation Signals and Candle Coloring
 
The signals in SMRT Algo Pro V3 can generate both normal and strong labels, with strong signals marked by the "+" symbol. These signals are closely linked to the candle coloring, providing a visual representation of trend development to help navigate various market conditions effectively.
 Candle Coloring:
 
  Blue Candles: Indicate bullish trends.
  Red Candles: Indicate bearish trends.
 
Candles will turn blue when there is a buy signal, and turn red when there is a sell signal.
  
The candle coloring is especially useful when interpreting signals. For instance, a consistent series of blue candles alongside buy signals suggests a strong uptrend, reducing the likelihood of a fake-out. Conversely, a series of red candles with sell signals indicates a strong downtrend.
 Dashboard for Multi-Timeframe Analysis
 
The dashboard provides a consolidated view of multiple timeframes, helping traders make quick decisions based on comprehensive data. This feature reduces the need to switch between charts, streamlining the analysis process.
  
The dashboard will show the trend of higher timeframes, based on signal calculation and the trend filter.
Note on the dashboard: To reduce memory load, it will only display information from the current timeframe and up.
 Trailing Stop Loss
 
This component workw to maximize profits and manage risk. The Trailing Stop Loss feature provides dynamic stop loss levels. Traders can use this feature to place their stop loss in profit while price goes in favor of your direction, so that less profit is left on the table, should the trade reverse against you.
  
Green trailing stop loss ranges are shown for buy trades, while red lines are shown for sell trades. This can be used together with the buy & sell signals to trail the stop loss for those trades.
 Power MA
 
The Power MA follows the price closely, indicating short-term market trends and potential exit points. Traders can use the Power MA to determine when to enter a trade. For example, if the Pro V3 prints a buy signal, but the power MA is red (indicating that the market is short term bearish), it can act as a confirmation to stay out of that trade. Conversely, if the power MA is blue, then it can be an added confirmation to enter the buy trade based on the signals.
  
 Market Structure
 
The inclusion of ChoCh/Bos (Change of Character and Break of Structure) helps traders understand internal and external market shifts. The ChoCh/Bos shows internal market structure, while the Market Structure feature shows the external market structure. This feature is crucial for identifying key turning points and potential trend continuations, as well as ICT traders.
  
We recommend traders to use this as an added confirmation, for example, once a buy signal is printed, wait for an internal or external Choch/BOS, possibly indicating that the market is now in control of the bulls. From there traders an either enter off another signal from the V3 or wait for the retest from the Retest Zones feature of the V3.
 Support & Resistance, Reversals, and Reversal Bands
 
These features highlight critical market levels and areas where price is likely to reverse or correct. They are essential for traders looking to capitalize on key support and resistance zones or potential reversal points. 
  
  
They can be used together with the buy & sell signals. An example is when a sell signal appears, we can look for potential trade exits either at the S/R zones, the reversal diamonds that are printed on the candle, or when price touches the reversal bands.
 Trend Lines
 
Auto-plotted trend lines and the trend ribbon provide insights into longer-term trends. They can be used together with the buy sell features of the V3, e.g. if a sell signal is printed, but price is in the lower half of the trend lines, we can assume that price is in an area of premium for our short trade. Traders can choose whether to wait for price to retrace back into an area of discount (top half of the trend line), where they can look to short.
  
 Retest Zones
 
The Retest Zones feature identifies optimal entry and re-entry points for break-and-retest strategies. As mentioned earlier, this feature can be used together with other features to act as a re-entry or further confirmation before entering a trade. 
  
Traders can wait for a signal to be printed by the V3, and wait for further confrirmation from the retest zones to enter at a better price. This feature can be used together with the signals, and the market structure features to create a simple break & retest strategy.
 Take Profit Modes:
 SMRT Algo Pro V3 includes a versatile Take Profit Mode designed to help traders optimize their exits:
 
  Hybrid Mode: Displays Take Profit, entry, and stop loss lines on the chart for the current position. Additionally, small circles labeled TP1, TP2, and TP3 indicate the points where take profit levels were hit.
  Minimal Mode: Only displays the small circles labeled TP1, TP2, and TP3, providing a cleaner chart view while still indicating take profit hits.
  Traditional Mode Only: Displays only the lines for Take Profit, entry, and stop loss, without the small circles.
 
Take profits are based off of 1:1, 1:2 and 1:3 risk to reward ratio with respect to the stop loss.
  
These modes offer flexibility for traders to choose their preferred level of detail on the chart, helping them to manage their trades effectively and track their take profit levels clearly.
The features of SMRT Algo Pro V3 can significantly strengthen your market analysis by providing additional confluences. These features allow traders to cross-verify signals and trends, making their strategies more robust and reliable. Here's how you can leverage these features:
SMRT Algo Pro V3 offers a comprehensive suite of tools and features that extend beyond the capabilities of standard or open-source indicators, providing significant additional value to users.
 
  Integrated System: Unlike basic or open-source tools that may require multiple installations and configurations, SMRT Algo Pro V3 combines all necessary indicators into a cohesive system. 
  Advanced Customization: The toolkit offers extensive customization options, including signal sensitivity adjustments, customizable MA Filters, and various Take Profit Modes. These features allow traders to tailor the system to their specific trading styles and risk tolerance, providing a level of personalization that free tools often lack.
 Real-Time Market Adaptation: SMRT Algo Pro V3 includes features like a deep learning dashboard and real-time market data integration, which continuously update and adapt to changing market conditions. This ensures that users receive the most current and relevant signals, enhancing decision-making accuracy.
 Educational Support: Alongside the tools, SMRT Algo provides comprehensive educational resources and tutorials, helping traders understand how to effectively use the system and develop robust trading strategies. This educational aspect adds significant value, especially for beginners looking to deepen their knowledge.
 Comprehensive Analysis Tools: The inclusion of multi-timeframe analysis, a detailed dashboard, and advanced market structure indicators help traders make more informed decisions by offering a complete picture of market dynamics.
 Support and Community: Subscribers to SMRT Algo Pro V3 gain access to dedicated 24/7 support and an active trading community. This support network can be invaluable for troubleshooting, strategy development, and gaining insights from other experienced traders.
 
SMRT Algo believe that there is no magic indicator that is able to print money. Indicator toolkits provide value via their convinience, adaptibility and uniqueness. Combining these items can help a trader make more educated; less messy, more planned trades and in turn hopefully help them succeed.
 RISK DISCLAIMER 
Trading involves significant risk, and most day traders lose money. All content, tools, scripts, articles, and educational materials provided by SMRT Algo are intended solely for informational and educational purposes. Past performance is not indicative of future results. Always conduct your own research and consult with a licensed financial advisor before making any trading decisions.
Turtle Trading Strategy@lihexieThe full implementation of the Turtle Trading Rules (as distinct from the various truncated versions circulating within the community) is now ready.
This trading strategy script distinguishes itself from all currently publicly available Turtle trading systems on Tradingview by comprehensively embodying the rules for entries, exits, position management, and profit and loss controls.
Market Selection:
Trade in highly liquid markets such as forex, commodity futures, and stock index futures.
Entry Strategies:
Model 1: Buy when the price breaks above the highest point of the last 20 trading days; Sell when the price drops below the lowest point of the last 20 trading days. When an entry opportunity arises, if the previous trade was profitable, skip the current breakout opportunity and refrain from entering.
Model 2: Buy when the price breaks above the highest point of the last 55 trading days; Sell when the price drops below the lowest point of the last 55 trading days.
Position Sizing:
Determine the size of each position based on the price volatility (ATR) to ensure that the risk of each trade does not exceed 2% of the account balance.
Exit Strategies:
1. Use a fixed stop-loss point to limit losses: Close long positions when the price falls below the lowest point of the last 10 trading days.
2. Trailing stop-loss: Once a position is profitable, adjust the stop-loss point to protect profits.
Pyramiding Rules:
Unit Doubling: Increase position size by one unit every time the price moves forward by n (default is 0.5) units of ATR, up to a maximum of 4 units, while also raising the stop-loss point to below the ATR value at the level of additional entries.
海龟交易法则的完整实现(区别于当前社区各种有阉割海龟交易系统代码)
本策略脚本区别于Tradingview目前公开的所有的海龟交易系统,完整的实现了海龟交易法则中入场、出场、仓位管理,止盈止损的规则。
市场选择:
选择流动性高的市场进行交易,如外汇、商品期货和股指期货等。
入市策略:
模式1:当价格突破过去20个交易日的高点时,买入;当价格跌破过去20个交易日的低点时,卖出。当出现入场机会时,如果上一笔交易是盈利的,那么跳过当前突破的机会,不进行入场。
模式2:当价格突破过去55个交易日的高点时,买入;当价格跌破过去55个交易日的低点时,卖出。
头寸规模:
根据价格波动性(ATR)来确定每个头寸的大小, 使每笔交易的风险不超过账户余额的2%。
退出策略:
1. 使用一个固定的止损点来限制损失:当多头头寸的价格跌破过去10个交易日的低点时,平仓止损。
2. 跟踪止损:一旦头寸盈利,移动止损点以保护利润。
加仓规则:
单位加倍:每当价格向前n(默认是0.5)个单位的ATR移动时,就增加一个单位的头寸大小(默认最大头寸数量是4个),同时将止损点提升至加仓点位的ATR值以下。
Rate of Change StrategyRate of Change Strategy : 
 INTRODUCTION : 
This strategy is based on the Rate of Change indicator. It compares the current price with that of a user-defined period of time ago. This makes it easy to spot trends and even speculative bubbles. The strategy is long term and very risky, which is why we've added a Stop Loss. There's also a money management method that allows you to reinvest part of your profits or reduce the size of your orders in the event of substantial losses.
 RATE OF CHANGE (ROC) : 
As explained above, the ROC is used to situate the current price compared to that of a certain period of time ago. The formula for calculating ROC in relation to the previous year is as follows :
 ROC (365) = (close/close (365) - 1) * 100 
With this formula we can find out how many percent the change in the current price is compared with 365 days ago, and thus assess the trend.
 PARAMETERS : 
 
 ROC Length : Length of the ROC to be calculated. The current price is compared with that of the selected length ago.
 ROC Bubble Signal : ROC value indicating that we are in a bubble. This value varies enormously depending on the financial product. For example, in the equity market, a bubble exists when ROC = 40, whereas in cryptocurrencies, a bubble exists when ROC = 150.
 Stop Loss (in %) : Stop Loss value in percentage. This is the maximum trade value percentage that can be lost in a single trade.
 Fixed Ratio : This is the amount of gain or loss at which the order quantity is changed. The default is 400, which means that for each $400 gain or loss, the order size is increased or decreased by an amount chosen by the user.
 Increasing Order Amount : This is the amount to be added to or subtracted from orders when the fixed ratio is reached. The default is $200, which means that for every $400 gain, $200 is reinvested in the strategy. On the other hand, for every $400 loss, the order size is reduced by $200.
 Initial capital : $1000
 Fees : Interactive Broker fees apply to this strategy. They are set at 0.18% of the trade value.
 Slippage : 3 ticks or $0.03 per trade. Corresponds to the latency time between the moment the signal is received and the moment the order is executed by the broker.
 Important : A bot has been used to test the different parameters and determine which ones maximize return while limiting drawdown. This strategy is the most optimal on  BITSTAMP:BTCUSD  in 1D timeframe with the following parameters :
 
ROC Length = 365
ROC Bubble Signal = 180
Stop Loss (in %) = 6
 LONG CONDITION : 
We are in a LONG position if ROC (365) > 0 for at least two days. This allows us to limit noise and irrelevant signals to ensure that the ROC remains positive.
 SHORT CONDITION : 
We are in a SHORT position if ROC (365) < 0 for at least two days. We also open a SHORT position when the speculative bubble is about to burst. If ROC (365) > 180, we're in a bubble. If the bubble has been in existence for at least a week and the ROC falls back below this threshold, we can expect the asset to return to reasonable prices, and thus a downward trend. So we're opening a SHORT position to take advantage of this upcoming decline.
 EXIT RULES FOR WINNING TRADE : 
The strategy is self-regulating. We don't exit a LONG trade until a SHORT signal has arrived, and vice versa. So, to exit a winning position, you have to wait for the entry signal of the opposite position.
 RISK MANAGEMENT : 
This strategy is very risky, and we can easily end up on the wrong side of the trade. That's why we're going to manage our risk with a Stop Loss, limiting our losses as a percentage of the trade's value. By default, this percentage is set at 6%. Each trade will therefore take a maximum loss of 6%.
If the SL has been triggered, it probably means we were on the wrong side. This is why we change the direction of the trade when a SL is triggered. For example, if we were SHORT and lost 6% of the trade value, the strategy will close this losing trade and open a long position without taking into account the ROC value. This allows us to be in position all the time and not miss the best opportunities.
 MONEY MANAGEMENT : 
The fixed ratio method was used to manage our gains and losses. For each gain of an amount equal to the value of the fixed ratio, we increase the order size by a value defined by the user in the "Increasing order amount" parameter. Similarly, each time we lose an amount equal to the value of the fixed ratio, we decrease the order size by the same user-defined value. This strategy increases both performance and drawdown.
 NOTE : 
Please note that the strategy is backtested from 2017-01-01. As the timeframe is 1D, this strategy is a medium/long-term strategy. That's why only 34 trades were closed. Be careful, as the test sample is small and performance may not necessarily reflect what may happen in the future.
Enjoy the strategy and don't forget to take the trade :)
Cracking Cryptocurrency - Bottom FeederThe Bottom Feeder 
The Bottom Feeder is designed to algorithmically detect significantly oversold conditions in price that represent profitable buying opportunities. Combining this with it’s unique Stop and Target System, the Bottom Feeder is designed to return consistent return with minimal draw down. Whether used as a Market Bottom Detector or as a system for executing safe, profitable mean reversion trades, the Bottom Feeder is a powerful tool in any trader’s arsenal.
Bottom Feeder was designed to be used on BTCUSD , however it is also effective on other USD/USDT pairs. One will have to check the individual pair they wish to trade with the Strategy Tester to simulate performance.
 Options 
Let’s go through the input options one by one, so that you are able to comfortably navigate all that this indicator has to offer. The link below will display a picture of the layout of the settings for your convenience.
For the sake of simplicity, let’s note now that all settings marked **Conservative Mode** will not work in Aggressive Mode.
 Mode:  Determines how aggressively Bottom Feeder generates a buy signal. In Conservative Mode, trades can only be opened once per candle and the stop and target will update as new signals appear. In Aggressive Mode, a separate trade is opened each time Bottom Feeder signals, which may be multiple times within one Daily candle.
 Plot Target and Stop Loss:  Toggles on/off the visualized take profit and stop losses on the chart.
 **Conservative Mode** TP Multiplier:  This is an input box, it requires a float value. That is, it can accept either a whole number integer or a number with a decimal. This number will determine your Take Profit target. It will take whatever number is entered into this box and multiply the Average True Range against it to determine your Take Profit.
 **Conservative Mode** SL Multiplier:  See above - this will modify your Stop Loss Value.
 **Conservative Mode** Average or Median True Range:  This is a drop-down option, the two options are Average True Range or Median True Range. If Average True Range is selected, then this indicator will use the Average True Range calculation, that is, the average of a historical set of True Range values to determine the Average True Range value for Target and Stop Loss calculation. If Median True Range is selected, it will not take an average and will instead take the Median value of your historical look back period.
 **Conservative Mode** True Range Length:  This is an input that requires an integer. This will represent your historical look back period for Average/Median True Range calculation.
 **Conservative Mode** True Range Smoothing:  This is a drop-down with the following options: Exponential Moving Average ( EMA ), Simple Moving Average ( SMA ), Weighted Moving Average ( WMA ), Relative Moving Average (RMA). This will determine the smoothing type for calculating the Average True Range if it is selected. Note: if Median True Range is selected above, this option will not have any effect as there is no smoothing for a Median value.
 **Conservative Mode** Custom True Range Value?:  This is a true/false option that is false by default. If enabled, it will override the Average/Median True Range calculation in favor of a users custom True Range value to be input below.
 **Conservative Mode** Custom True Range Value:  This is an input box that requires a float value. If Custom True Range is enabled this is where a user will input their desired custom True Range value for Target and Stop Loss calculation.
 Stop and Target Description 
Because Bottom Feeder is designed only to scalp the various market bottoms that can appear over time in the market and not to identify trends or to trade ranges, it’s imperative that the indicator notify us not just to when to enter our trades, but when to exit! In the service of that, CC Bottom Feeder has a built in Stop and Target system that tracks and displays the stop loss and take profit levels of each individual open trade, whether in Aggressive or Conservative Mode.
Conservative Mode Targeting: In Conservative Mode, Bottom Feeder signals are aggregated into a compound trade. The signal will appear as a green label pointing up below a candle, and will appear upon a candle close. If Bottom Feeder then generates another signal the stop loss and target price will be updated. The process will continue until the aggregated trade completes in either direction. On a trade with multiple signals, a larger position is slowly entered into upon each buy signal.
Aggressive Mode Targeting: In Aggressive Mode, Bottom Feeder signals are individually displayed as they are generated, regardless of how many signals are generated on any single candle. If Bottom Feeder continues to signal, each individual open trade will have their own stop loss and target that will be displayed on the chart until the individual trade completes in either direction. As opposed to a large compound position, aggressive mode represents a higher number of independent signals with their own stop and target levels.
Stop losses and targets are designed to be hard, not soft. That is, they are intended to be stop market orders, not mental stop losses. If price wicks through the target or stop, it will activate.
RSI Donchian Channel [DCAUT]█ RSI Donchian Channel  
 📊 ORIGINALITY & INNOVATION 
The RSI Donchian Channel represents an important synthesis of two complementary analytical frameworks: momentum oscillators and breakout detection systems. This indicator addresses a common limitation in traditional RSI analysis by replacing fixed overbought/oversold thresholds with adaptive zones derived from historical RSI extremes.
 Key Enhancement: 
Traditional RSI analysis relies on static threshold levels (typically 30/70), which may not adequately reflect changing market volatility regimes. This indicator adapts the reference zones dynamically based on the actual RSI behavior over the lookback period, helping traders identify meaningful momentum extremes relative to recent price action rather than arbitrary fixed levels.
The implementation combines the proven momentum measurement capabilities of RSI with Donchian Channel's breakout detection methodology, creating a framework that identifies both momentum exhaustion points and potential continuation signals through the same analytical lens.
 📐 MATHEMATICAL FOUNDATION 
 Core Calculation Process: 
 Step 1: RSI Calculation 
The Relative Strength Index measures momentum by comparing the magnitude of recent gains to recent losses:
 
 Calculate price changes between consecutive periods
 Separate positive changes (gains) from negative changes (losses)
 Apply selected smoothing method (RMA standard, also supports SMA, EMA, WMA) to both gain and loss series
 Compute Relative Strength (RS) as the ratio of smoothed gains to smoothed losses
 Transform RS into bounded 0-100 scale using the formula: RSI = 100 - (100 / (1 + RS))
 
 Step 2: Donchian Channel Application 
The Donchian Channel identifies the highest and lowest RSI values within the specified lookback period:
 
 Upper Channel: Highest RSI value over the lookback period, represents the recent momentum peak
 Lower Channel: Lowest RSI value over the lookback period, represents the recent momentum trough
 Middle Channel (Basis): Average of upper and lower channels, serves as equilibrium reference
 
 Channel Width Dynamics: 
The distance between upper and lower channels reflects RSI volatility. Wide channels indicate high momentum variability, while narrow channels suggest momentum consolidation and potential breakout preparation. The indicator monitors channel width over a 100-period window to identify squeeze conditions that often precede significant momentum shifts.
 📊 COMPREHENSIVE SIGNAL ANALYSIS 
 Primary Signal Categories: 
 Breakout Signals: 
 
 Upper Breakout: RSI crosses above the upper channel, indicates momentum reaching new relative highs and potential trend continuation, particularly significant when accompanied by price confirmation
 Lower Breakout: RSI crosses below the lower channel, suggests momentum reaching new relative lows and potential trend exhaustion or reversal setup
 Breakout strength is enhanced when the channel is narrow prior to the breakout, indicating a transition from consolidation to directional movement
 
 Mean Reversion Signals: 
 
 Upper Touch Without Breakout: RSI reaches the upper channel but fails to break through, may indicate momentum exhaustion and potential reversal opportunity
 Lower Touch Without Breakout: RSI reaches the lower channel without breakdown, suggests potential bounce as momentum reaches oversold extremes
 Return to Basis: RSI moving back toward the middle channel after touching extremes signals momentum normalization
 
 Trend Strength Assessment: 
 
 Sustained Upper Channel Riding: RSI consistently remains near or above the upper channel during strong uptrends, indicates persistent bullish momentum
 Sustained Lower Channel Riding: RSI stays near or below the lower channel during strong downtrends, reflects persistent bearish pressure
 Basis Line Position: RSI position relative to the middle channel helps identify the prevailing momentum bias
 
 Channel Compression Patterns: 
 
 Squeeze Detection: Channel width narrowing to 100-period lows indicates momentum consolidation, often precedes significant directional moves
 Expansion Phase: Channel widening after a squeeze confirms the initiation of a new momentum regime
 Persistent Narrow Channels: Extended periods of tight channels suggest market indecision and accumulation/distribution phases
 
 🎯 STRATEGIC APPLICATIONS 
 Trend Continuation Strategy: 
This approach focuses on identifying and trading momentum breakouts that confirm established trends:
 
 Identify the prevailing price trend using higher timeframe analysis or trend-following indicators
 Wait for RSI to break above the upper channel in uptrends (or below the lower channel in downtrends)
 Enter positions in the direction of the breakout when price action confirms the momentum shift
 Place protective stops below the recent swing low (long positions) or above swing high (short positions)
 Target profit levels based on prior swing extremes or use trailing stops to capture extended moves
 Exit when RSI crosses back through the basis line in the opposite direction
 
 Mean Reversion Strategy: 
This method capitalizes on momentum extremes and subsequent corrections toward equilibrium:
 
 Monitor for RSI reaching the upper or lower channel boundaries
 Look for rejection signals (price reversal patterns, volume divergence) when RSI touches the channels
 Enter counter-trend positions when RSI begins moving back toward the basis line
 Use the basis line as the initial profit target for mean reversion trades
 Implement tight stops beyond the channel extremes to limit risk on failed reversals
 Scale out of positions as RSI approaches the basis line and closes the position when RSI crosses the basis
 
 Breakout Preparation Strategy: 
This approach positions traders ahead of potential volatility expansion from consolidation phases:
 
 Identify squeeze conditions when channel width reaches 100-period lows
 Monitor price action for consolidation patterns (triangles, rectangles, flags) during the squeeze
 Prepare conditional orders for breakouts in both directions from the consolidation
 Enter positions when RSI breaks out of the narrow channel with expanding width
 Use the channel width expansion as a confirmation signal for the breakout's validity
 Manage risk with stops just inside the opposite channel boundary
 
 Multi-Timeframe Confluence Strategy: 
Combining RSI Donchian Channel analysis across multiple timeframes can improve signal reliability:
 
 Identify the primary trend direction using a higher timeframe RSI Donchian Channel (e.g., daily or weekly)
 Use a lower timeframe (e.g., 4-hour or hourly) to time precise entry points
 Enter long positions when both timeframes show RSI above their respective basis lines
 Enter short positions when both timeframes show RSI below their respective basis lines
 Avoid trades when timeframes provide conflicting signals (e.g., higher timeframe below basis, lower timeframe above)
 Exit when the higher timeframe RSI crosses its basis line in the opposite direction
 
 Risk Management Guidelines: 
Effective risk management is essential for all RSI Donchian Channel strategies:
 
 Position Sizing: Calculate position sizes based on the distance between entry point and stop loss, limiting risk to 1-2% of capital per trade
 Stop Loss Placement: For breakout trades, place stops just inside the opposite channel boundary; for mean reversion trades, use stops beyond the channel extremes
 Profit Targets: Use the basis line as a minimum target for mean reversion trades; for trend trades, target prior swing extremes or use trailing stops
 Channel Width Context: Increase position sizes during narrow channels (lower volatility) and reduce sizes during wide channels (higher volatility)
 Correlation Awareness: Monitor correlations between traded instruments to avoid over-concentration in similar setups
 
 📋 DETAILED PARAMETER CONFIGURATION 
 RSI Source: 
Defines the price data series used for RSI calculation:
 
 Close (Default): Standard choice providing end-of-period momentum assessment, suitable for most trading styles and timeframes
 High-Low Average (HL2): Reduces the impact of closing auction dynamics, useful for markets with significant end-of-day volatility
 High-Low-Close Average (HLC3): Provides a more balanced view incorporating the entire period's range
 Open-High-Low-Close Average (OHLC4): Offers the most comprehensive price representation, helpful for identifying overall period sentiment
 Strategy Consideration: Use Close for end-of-period signals, HL2 or HLC3 for intraday volatility reduction, OHLC4 for capturing full period dynamics
 
 RSI Length: 
Controls the number of periods used for RSI calculation:
 
 Short Periods (5-9): Highly responsive to recent price changes, produces more frequent signals with increased false signal risk, suitable for short-term trading and volatile markets
 Standard Period (14): Widely accepted default balancing responsiveness with stability, appropriate for swing trading and intermediate-term analysis
 Long Periods (21-28): Produces smoother RSI with fewer signals but more reliable trend identification, better for position trading and reducing noise in choppy markets
 Optimization Approach: Test different lengths against historical data for your specific market and timeframe, consider using longer periods in ranging markets and shorter periods in trending markets
 
 RSI MA Type: 
Determines the smoothing method applied to price changes in RSI calculation:
 
 RMA (Relative Moving Average - Default): Wilder's original smoothing method providing stable momentum measurement with gradual response to changes, maintains consistency with classical RSI interpretation
 SMA (Simple Moving Average): Treats all periods equally, responds more quickly to changes than RMA but may produce more whipsaws in volatile conditions
 EMA (Exponential Moving Average): Weights recent periods more heavily, increases responsiveness at the cost of potential noise, suitable for traders prioritizing early signal generation
 WMA (Weighted Moving Average): Applies linear weighting favoring recent data, offers a middle ground between SMA and EMA responsiveness
 Selection Guidance: Maintain RMA for consistency with traditional RSI analysis, use EMA or WMA for more responsive signals in fast-moving markets, apply SMA for maximum simplicity and transparency
 
 DC Length: 
Specifies the lookback period for Donchian Channel calculation on RSI values:
 
 Short Periods (10-14): Creates tight channels that adapt quickly to changing momentum conditions, generates more frequent trading signals but increases sensitivity to short-term RSI fluctuations
 Standard Period (20): Balances channel responsiveness with stability, aligns with traditional Bollinger Bands and moving average periods, suitable for most trading styles
 Long Periods (30-50): Produces wider, more stable channels that better represent sustained momentum extremes, reduces signal frequency while improving reliability, appropriate for position traders and higher timeframes
 Calibration Strategy: Match DC length to your trading timeframe (shorter for day trading, longer for swing trading), test channel width behavior during different market regimes, consider using adaptive periods that adjust to volatility conditions
 Market Adaptation: Use shorter DC lengths in trending markets to capture momentum shifts earlier, apply longer periods in ranging markets to filter noise and focus on significant extremes
 
 Parameter Combination Recommendations: 
 
 Scalping/Day Trading: RSI Length 5-9, DC Length 10-14, EMA or WMA smoothing for maximum responsiveness
 Swing Trading: RSI Length 14, DC Length 20, RMA smoothing for balanced analysis (default configuration)
 Position Trading: RSI Length 21-28, DC Length 30-50, RMA or SMA smoothing for stable signals
 High Volatility Markets: Longer RSI periods (21+) with standard DC length (20) to reduce noise
 Low Volatility Markets: Standard RSI length (14) with shorter DC length (10-14) to capture subtle momentum shifts
 
 📈 PERFORMANCE ANALYSIS & COMPETITIVE ADVANTAGES 
 Adaptive Threshold Mechanism: 
Unlike traditional RSI analysis with fixed 30/70 thresholds, this indicator's Donchian Channel approach provides several improvements:
 
 Context-Aware Extremes: Overbought/oversold levels adjust automatically based on recent momentum behavior rather than arbitrary fixed values
 Volatility Adaptation: In low volatility periods, channels narrow to reflect tighter momentum ranges; in high volatility, channels widen appropriately
 Market Regime Recognition: The indicator implicitly adapts to different market conditions without manual threshold adjustments
 False Signal Reduction: Adaptive channels help reduce premature reversal signals that often occur with fixed thresholds during strong trends
 
 Signal Quality Characteristics: 
The indicator's dual-purpose design provides distinct advantages for different trading objectives:
 
 Breakout Trading: Channel boundaries offer clear, objective breakout levels that update dynamically, eliminating the ambiguity of when momentum becomes "too high" or "too low"
 Mean Reversion: The basis line provides a natural profit target for reversion trades, representing the midpoint of recent momentum extremes
 Trend Strength: Persistent channel boundary riding offers an objective measure of trend strength without additional indicators
 Consolidation Detection: Channel width analysis provides early warning of potential volatility expansion from compression phases
 
 Comparative Analysis: 
When compared to traditional RSI implementations and other momentum frameworks:
 
 vs. Fixed Threshold RSI: Provides market-adaptive reference levels rather than static values, helping to reduce false signals during trending markets where RSI can remain "overbought" or "oversold" for extended periods
 vs. RSI Bollinger Bands: Offers clearer breakout signals and more intuitive extreme identification through actual high/low boundaries rather than statistical standard deviations
 vs. Stochastic Oscillator: Maintains RSI's momentum measurement advantages (unbounded calculation avoiding scale compression) while adding the breakout detection capabilities of Donchian Channels
 vs. Standard Donchian Channels: Applies breakout methodology to momentum space rather than price, providing earlier signals of potential trend changes before price breakouts occur
 
 Performance Characteristics: 
The indicator exhibits specific behavioral patterns across different market conditions:
 
 Trending Markets: Excels at identifying momentum continuation through channel breakouts, RSI tends to ride one channel boundary during strong trends, providing trend confirmation
 Ranging Markets: Channel width narrows during consolidation, offering early preparation signals for potential breakout trading opportunities
 High Volatility: Channels widen to reflect increased momentum variability, automatically adjusting signal sensitivity to match market conditions
 Low Volatility: Channels contract, making the indicator more sensitive to subtle momentum shifts that may be significant in calm market environments
 Transition Periods: Channel squeezes often precede major trend changes, offering advance warning of potential regime shifts
 
 Limitations and Considerations: 
Users should be aware of certain operational characteristics:
 
 Lookback Dependency: Channel boundaries depend entirely on the lookback period, meaning the indicator has no predictive element beyond identifying current momentum relative to recent history
 Lag Characteristics: As with all moving average-based indicators, RSI calculation introduces lag, and channel boundaries update only as new extremes occur within the lookback window
 Range-Bound Sensitivity: In extremely tight ranges, channels may become very narrow, potentially generating excessive signals from minor momentum fluctuations
 Trending Persistence: During very strong trends, RSI may remain at channel extremes for extended periods, requiring patience for mean reversion setups or commitment to trend-following approaches
 No Absolute Levels: Unlike traditional RSI, this indicator provides no fixed reference points (like 50), making it less suitable for strategies that depend on absolute momentum readings
 
 USAGE NOTES 
This indicator is designed for technical analysis and educational purposes to help traders understand momentum dynamics and identify potential trading opportunities. The RSI Donchian Channel has limitations and should not be used as the sole basis for trading decisions.
Important considerations:
 
 Performance varies significantly across different market conditions, timeframes, and instruments
 Historical signal patterns do not guarantee future results, as market behavior continuously evolves
 Effective use requires understanding of both RSI momentum principles and Donchian Channel breakout concepts
 Risk management practices (stop losses, position sizing, diversification) are essential for any trading application
 Consider combining with additional analytical tools such as volume analysis, price action patterns, or trend indicators for confirmation
 Backtest thoroughly on your specific instruments and timeframes before live trading implementation
 Be aware that optimization on historical data may lead to curve-fitting and poor forward performance
 
The indicator performs best when used as part of a comprehensive trading methodology that incorporates multiple forms of market analysis, sound risk management, and realistic expectations about win rates and drawdowns.
Alpha - Combined BreakoutThis Pine Script indicator, "Alpha - Combined Breakout," is a combination between Smart Money Breakout Signals   and UT Bot Alert, The UT Bot Alert indicator was initially developer by Yo_adriiiiaan
The idea of original code belongs HPotter. 
This Indicator helps you identify potential trading opportunities by combining two distinct strategies: Smart Money Breakout and a modified UT Bot (likely a variation of the Ultimate Trend Bot). It provides visual signals, draws lines for potential take profit (TP) and stop loss (SL) levels, and includes a dashboard to track performance metrics.
Tutorial: 
Understanding and Using the "Alpha - Combined Breakout" Indicator
This indicator is designed for traders looking for confirmation of market direction and potential entry/exit points by blending structural analysis with a trend-following oscillator.
How it Works (General Concept)
The indicator combines two main components:
Smart Money Breakout: This part identifies significant breaks in market structure, which "smart money" traders often use to gauge shifts in supply and demand. It looks for higher highs/lows or lower highs/lows and flags when these structural points are broken.
UT Bot: This is a trend-following component that generates buy and sell signals based on price action relative to an Average True Range (ATR) based trailing stop.
You can choose to use these signals independently or combined to generate trading alerts and visual cues on your chart. The dashboard provides a quick overview of how well the signals are performing based on your chosen settings and display mode.
Parameters and What They Do
Let's break down each input parameter:
1. Smart Money Inputs
These settings control how the indicator identifies market structure and breakouts.
swingSize (Market Structure Time-Horizon):
What it does: This integer value defines the number of candles used to identify significant "swing" (pivot) points—highs and lows.
Effect: A larger swingSize creates a smoother market structure, focusing on longer-term trends. This means signals might appear less frequently and with some delay but could be more reliable for higher timeframes or broader market movements. A smaller swingSize will pick up more minor market structure changes, leading to more frequent but potentially noisier signals, suitable for lower timeframes or scalping.
Analogy: Think of it like a zoom level on your market structure map. Higher values zoom out, showing only major mountain ranges. Lower values zoom in, showing every hill and bump.
bosConfType (BOS Confirmation Type):
What it does: This string input determines how a Break of Structure (BOS) is confirmed. You have two options:
'Candle Close': A breakout is confirmed only if a candle's closing price surpasses the previous swing high (for bullish) or swing low (for bearish).
'Wicks': A breakout is confirmed if any part of the candle (including its wick) surpasses the previous swing high or low.
Effect: 'Candle Close' provides stronger, more conservative confirmation, as it implies sustained price movement beyond the structure. 'Wicks' provides earlier, more aggressive signals, as it captures momentary breaches of the structure.
Analogy: Imagine a wall. 'Candle Close' means the whole person must get over the wall. 'Wicks' means even a finger touching over the top counts as a breach.
choch (Show CHoCH):
What it does: A boolean (true/false) input to enable or disable the display of "Change of Character" (CHoCH) labels. CHoCH indicates the first structural break against the current dominant trend.
Effect: When true, it helps identify early signs of a potential trend reversal, as it marks where the market's "character" (its tendency to make higher highs/lows or lower lows/highs) first changes.
BULL (Bullish Color) & BEAR (Bearish Color):
What they do: These color inputs allow you to customize the visual appearance of bullish and bearish signals and lines drawn by the Smart Money component.
Effect: Purely cosmetic, helps with visual identification on the chart.
sm_tp_sl_multiplier (SM TP/SL Multiplier (ATR)):
What it does: A float value that acts as a multiplier for the Average True Range (ATR) to calculate the Take Profit (TP) and Stop Loss (SL) levels specifically when you're in "Smart Money Only" mode. It uses the ATR calculated by the UT Bot's nLoss_ut as its base.
Effect: A higher multiplier creates wider TP/SL levels, potentially leading to fewer trades but larger wins/losses. A lower multiplier creates tighter TP/SL levels, potentially leading to more frequent but smaller wins/losses.
2. UT Bot Alerts Inputs
These parameters control the behavior and sensitivity of the UT Bot component.
a_ut (UT Key Value (Sensitivity)):
What it does: This integer value adjusts the sensitivity of the UT Bot.
Effect: A higher value makes the UT Bot less sensitive to price fluctuations, resulting in fewer and potentially more reliable signals. A lower value makes it more sensitive, generating more signals, which can include more false signals.
Analogy: Like a noise filter. Higher values filter out more noise, keeping only strong signals.
c_ut (UT ATR Period):
What it does: This integer sets the look-back period for the Average True Range (ATR) calculation used by the UT Bot. ATR measures market volatility.
Effect: This period directly influences the calculation of the nLoss_ut (which is a_ut * xATR_ut), thus defining the distance of the trailing stop loss and take profit levels. A longer period makes the ATR smoother and less reactive to sudden price spikes. A shorter period makes it more responsive.
h_ut (UT Signals from Heikin Ashi Candles):
What it does: A boolean (true/false) input to determine if the UT Bot calculations should use standard candlestick data or Heikin Ashi candlestick data.
Effect: Heikin Ashi candles smooth out price action, often making trends clearer and reducing noise. Using them for UT Bot signals can lead to smoother, potentially delayed signals that stay with a trend longer. Standard candles are more reactive to raw price changes.
3. Line Drawing Control Buttons
These crucial boolean inputs determine which type of signals will trigger the drawing of TP/SL/Entry lines and flags on your chart. They act as a priority system.
drawLinesUtOnly (Draw Lines: UT Only):
What it does: If checked (true), lines and flags will only be drawn when the UT Bot generates a buy/sell signal.
Effect: Isolates UT Bot signals for visual analysis.
drawLinesSmartMoneyOnly (Draw Lines: Smart Money Only):
What it does: If checked (true), lines and flags will only be drawn when the Smart Money Breakout logic generates a bullish/bearish breakout.
Effect: Overrides drawLinesUtOnly if both are checked. Isolates Smart Money signals.
drawLinesCombined (Draw Lines: UT & Smart Money (Combined)):
What it does: If checked (true), lines and flags will only be drawn when both a UT Bot signal AND a Smart Money Breakout signal occur on the same bar.
Effect: Overrides both drawLinesUtOnly and drawLinesSmartMoneyOnly if checked. Provides the strictest entry criteria for line drawing, looking for strong confluence.
Dashboard Metrics Explained
The dashboard provides performance statistics based on the lines drawing control button selected. For example, if "Draw Lines: UT Only" is active, the dashboard will show stats only for UT Bot signals.
Total Signals: The total number of buy or sell signals generated by the selected drawing mode.
TP1 Win Rate: The percentage of signals where the price reached Take Profit 1 (TP1) before hitting the Stop Loss.
TP2 Win Rate: The percentage of signals where the price reached Take Profit 2 (TP2) before hitting the Stop Loss.
TP3 Win Rate: The percentage of signals where the price reached Take Profit 3 (TP3) before hitting the Stop Loss. (Note: TP1, TP2, TP3 are in order of distance from entry, with TP3 being furthest.)
SL before any TP rate: This crucial metric shows the number of times the Stop Loss was hit / the percentage of total signals where the stop loss was triggered before any of the three Take Profit levels were reached. This gives you a clear picture of how often a trade resulted in a loss without ever moving into profit target territory.
Short Tutorial: How to Use the Indicator
Add to Chart: Open your TradingView chart, go to "Indicators," search for "Alpha - Combined Breakout," and add it to your chart.
Access Settings: Once added, click the gear icon next to the indicator name on your chart to open its settings.
Choose Your Signal Mode:
For UT Bot only: Uncheck "Draw Lines: Smart Money Only" and "Draw Lines: UT & Smart Money (Combined)". Ensure "Draw Lines: UT Only" is checked.
For Smart Money only: Uncheck "Draw Lines: UT Only" and "Draw Lines: UT & Smart Money (Combined)". Ensure "Draw Lines: Smart Money Only" is checked.
For Combined Signals: Check "Draw Lines: UT & Smart Money (Combined)". This will override the other two.
Adjust Parameters:
Start with default settings. Observe how the signals appear on your chosen asset and timeframe.
Refine Smart Money: If you see too many "noisy" market structure breaks, increase swingSize. If you want earlier breakouts, try "Wicks" for bosConfType.
Refine UT Bot: Adjust a_ut (Sensitivity) to get more or fewer UT Bot signals. Change c_ut (ATR Period) if you want larger or smaller TP/SL distances. Experiment with h_ut to see if Heikin Ashi smoothing suits your trading style.
Adjust TP/SL Multiplier: If using "Smart Money Only" mode, fine-tune sm_tp_sl_multiplier to set appropriate risk/reward levels.
Interpret Signals & Lines:
Buy/Sell Flags: These indicate the presence of a signal based on your selected drawing mode.
Entry Line (Blue Solid): This is where the signal was generated (usually the close price of the signal candle).
SL Line (Red/Green Solid): Your calculated stop loss level.
TP Lines (Dashed): Your three calculated take profit levels (TP1, TP2, TP3, where TP3 is the furthest target).
Smart Money Lines (BOS/CHoCH): These lines indicate horizontal levels where market structure breaks occurred. CHoCH labels might appear at the first structural break against the prior trend.
Monitor Dashboard: Pay attention to the dashboard in the top right corner. This dynamically updates to show the win rates for each TP and, crucially, the "SL before any TP rate." Use these statistics to evaluate the effectiveness of the indicator's signals under your current settings and chosen mode.
*
Set Alerts (Optional): You can set up alerts for any of the specific signals (UT Bot Long/Short, Smart Money Bullish/Bearish, or the "Line Draw" combined signals) to notify you when they occur, even if you're not actively watching the chart.
By following this tutorial, you'll be able to effectively use and customize the "Alpha - Combined Breakout" indicator to suit your trading strategy.






















